Klasse DataType<T>

java.lang.Object
org.deidentifier.arx.DataType<T>
Typparameter:
T -
Alle implementierten Schnittstellen:
Serializable, Comparator<T>
Bekannte direkte Unterklassen:
DataType.ARXDate, DataType.ARXDecimal, DataType.ARXInteger, DataType.ARXOrderedString, DataType.ARXString

public abstract class DataType<T> extends Object implements Serializable, Comparator<T>
This class provides access to the data types supported by the ARX framework.
Siehe auch:
  • Felddetails

    • NULL_VALUE

      public static final String NULL_VALUE
      The string representing the NULL value
      Siehe auch:
    • ANY_VALUE

      public static final String ANY_VALUE
      The string representing the ANY value
      Siehe auch:
    • DATE

      public static final DataType<Date> DATE
      A date data type with default format dd.mm.yyyy
    • DECIMAL

      public static final DataType<Double> DECIMAL
      A generic decimal data type.
    • INTEGER

      public static final DataType<Long> INTEGER
      A generic integer data type.
    • STRING

      public static final DataType<String> STRING
      A string data type.
    • ORDERED_STRING

      public static final DataType<String> ORDERED_STRING
      A ordered string data type.
  • Konstruktordetails

    • DataType

      public DataType()
  • Methodendetails

    • createDate

      public static final DataType<Date> createDate(String format)
      A date data type with given format.
      Parameter:
      format -
      Gibt zurück:
      Siehe auch:
    • createDate

      public static final DataType<Date> createDate(String format, Locale locale)
      A date data type with given format.
      Parameter:
      format -
      locale -
      Gibt zurück:
      Siehe auch:
    • createDecimal

      public static final DataType<Double> createDecimal(String format)
      A decimal data type with given format.
      Parameter:
      format -
      Gibt zurück:
      Siehe auch:
    • createDecimal

      public static DataType<Double> createDecimal(String format, Locale locale)
      Creates a decimal data type with a format string from the given locale.
      Parameter:
      format -
      locale -
      Gibt zurück:
    • createInteger

      public static final DataType<Long> createInteger(String format)
      An integer data type with given format.
      Parameter:
      format -
      Gibt zurück:
      Siehe auch:
    • createInteger

      public static final DataType<Long> createInteger(String format, Locale locale)
      An integer data type with given format using the given locale.
      Parameter:
      format -
      locale -
      Gibt zurück:
      Siehe auch:
    • createOrderedString

      public static final DataType<String> createOrderedString(List<String> format)
      A ordered string type with given format.
      Parameter:
      format - List of ordered strings
      Gibt zurück:
    • createOrderedString

      public static final DataType<String> createOrderedString(String format)
      A ordered string type with given format.
      Parameter:
      format - List of ordered strings separated by line feeds
      Gibt zurück:
    • createOrderedString

      public static final DataType<String> createOrderedString(String[] format)
      A ordered string type with given format.
      Parameter:
      format - List of ordered strings
      Gibt zurück:
    • isAny

      public static final boolean isAny(String value)
      Returns whether the value represents any value
      Parameter:
      value -
      Gibt zurück:
    • isNull

      public static final boolean isNull(String value)
      Returns whether the value represents null
      Parameter:
      value -
      Gibt zurück:
    • list

      public static final List<DataType.DataTypeDescription<?>> list()
      Lists all available data types.
      Gibt zurück:
    • list

      public static final <U> DataType.DataTypeDescription<U> list(Class<U> clazz)
      Returns a datatype for the given class.
      Typparameter:
      U -
      Parameter:
      clazz -
      Gibt zurück:
    • clone

      public abstract DataType<T> clone()
    • compare

      public abstract int compare(String s1, String s2) throws NumberFormatException, ParseException
      Compares two values. The result is 0 if both values are equal, less than 0 if the first value is less than the second argument, and greater than 0 if the first value is greater than the second argument.
      Parameter:
      s1 -
      s2 -
      Gibt zurück:
      Löst aus:
      NumberFormatException
      ParseException
    • compare

      public abstract int compare(T t1, T t2)
      Compare.
      Angegeben von:
      compare in Schnittstelle Comparator<T>
      Parameter:
      t1 -
      t2 -
      Gibt zurück:
    • createAggregate

      public AggregateFunction.AggregateFunctionBuilder<T> createAggregate()
      Returns a new function builder.
      Gibt zurück:
    • equals

      public abstract boolean equals(Object other)
      Angegeben von:
      equals in Schnittstelle Comparator<T>
      Setzt außer Kraft:
      equals in Klasse Object
    • format

      public abstract String format(T t)
      Converts a value into a string.
      Parameter:
      t -
      Gibt zurück:
    • getDescription

      public abstract DataType.DataTypeDescription<T> getDescription()
      Returns a description of the data type.
      Gibt zurück:
    • hashCode

      public abstract int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • isValid

      public abstract boolean isValid(String s)
      Checks whether the given string conforms to the data type's format.
      Parameter:
      s -
      Gibt zurück:
    • parse

      public abstract T parse(String s)
      Converts a string into a value.
      Parameter:
      s -
      Gibt zurück: