01: package org.strecks.converter;
02:
03: /**
04: * Class which holds singleton objects with specific meanings in the context of a data conversion
05: * operation
06: * @author Phil Zoio
07: */
08: public class ConversionState {
09:
10: /**
11: * Represents a failed data type conversion
12: */
13: public static final ConversionState FAILURE = new ConversionState();
14:
15: /**
16: * Represents a data type conversion where null is obtained
17: */
18: public static final ConversionState NULL = new ConversionState();
19:
20: private ConversionState() {
21: super();
22: }
23:
24: }
|