Class Convertable

java.lang.Object
com.aquima.interactions.foundation.convert.Convertable
All Implemented Interfaces:
IConvertable
Direct Known Subclasses:
InfiniteValue, ListValue, RangeValue

public abstract class Convertable extends Object implements IConvertable
Abstract base class for objects that wish to implement the IConvertable interface.
Since:
5.0
Author:
O. Kerpershoek
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Convertable

      public Convertable()
  • Method Details

    • getValue

      public abstract Object getValue()
      Description copied from interface: IConvertable
      This method returns the internal object of this instance without any conversion.
      Specified by:
      getValue in interface IConvertable
      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 interface IConvertable
      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 interface IConvertable
      Returns:
      Long primitive of the internal value.
    • stringValue

      public String stringValue()
      Description copied from interface: IConvertable
      This method converts the internal value to a String object.
      Specified by:
      stringValue in interface IConvertable
      Returns:
      String object of the internal value.
    • dateValue

      public Date dateValue()
      Description copied from interface: IConvertable
      This method converts the internal value to a date object.
      Specified by:
      dateValue in interface IConvertable
      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 interface IConvertable
      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 interface IConvertable
      Returns:
      Double primitive of the internal value.