Class Convertable
java.lang.Object
com.aquima.interactions.foundation.convert.Convertable
- All Implemented Interfaces:
IConvertable
- Direct Known Subclasses:
InfiniteValue
,ListValue
,RangeValue
Abstract base class for objects that wish to implement the IConvertable interface.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method converts the internal value to a boolean primitive.This method converts the internal value to a date object.double
This method converts the internal value to a double primitive.abstract Object
getValue()
This method returns the internal object of this instance without any conversion.int
This method converts the internal value to an integer primitive.long
This method converts the internal value to a long primitive.This method converts the internal value to a String object.
-
Constructor Details
-
Convertable
public Convertable()
-
-
Method Details
-
getValue
Description copied from interface:IConvertable
This method returns the internal object of this instance without any conversion.- Specified by:
getValue
in interfaceIConvertable
- Returns:
- The internal Object of this attribute value.
-
booleanValue
public boolean booleanValue()Description copied from interface:IConvertable
This method converts the internal value to a boolean primitive.- Specified by:
booleanValue
in interfaceIConvertable
- Returns:
- Boolean primitive of the internal value.
-
longValue
public long longValue()Description copied from interface:IConvertable
This method converts the internal value to a long primitive.- Specified by:
longValue
in interfaceIConvertable
- Returns:
- Long primitive of the internal value.
-
stringValue
Description copied from interface:IConvertable
This method converts the internal value to a String object.- Specified by:
stringValue
in interfaceIConvertable
- Returns:
- String object of the internal value.
-
dateValue
Description copied from interface:IConvertable
This method converts the internal value to a date object.- Specified by:
dateValue
in interfaceIConvertable
- Returns:
- Date object of the internal value.
-
integerValue
public int integerValue()Description copied from interface:IConvertable
This method converts the internal value to an integer primitive.- Specified by:
integerValue
in interfaceIConvertable
- Returns:
- Integer primitive of the internal value.
-
doubleValue
public double doubleValue()Description copied from interface:IConvertable
This method converts the internal value to a double primitive.- Specified by:
doubleValue
in interfaceIConvertable
- Returns:
- Double primitive of the internal value.
-