Package org.deidentifier.arx
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
This class provides access to the data types supported by the ARX framework.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic classBase class for date/time types.static classBase class for numeric types.static classBase class for numeric types.static classBase class for ordered string types.static classBase class for string types.static classAn entry in the list of available data types.static interfaceAn interface for data types with format.static interfaceAn interface for data types with a ratio scale. -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final StringThe string representing the ANY valueA date data type with default format dd.mm.yyyyA generic decimal data type.A generic integer data type.static final StringThe string representing the NULL valueA ordered string data type.A string data type. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungclone()abstract intCompares two values.abstract intCompare.Returns a new function builder.createDate(String format) A date data type with given format.createDate(String format, Locale locale) A date data type with given format.createDecimal(String format) A decimal data type with given format.createDecimal(String format, Locale locale) Creates a decimal data type with a format string from the given locale.createInteger(String format) An integer data type with given format.createInteger(String format, Locale locale) An integer data type with given format using the given locale.createOrderedString(String format) A ordered string type with given format.createOrderedString(String[] format) A ordered string type with given format.createOrderedString(List<String> format) A ordered string type with given format.abstract booleanabstract StringConverts a value into a string.abstract DataType.DataTypeDescription<T> Returns a description of the data type.abstract inthashCode()static final booleanReturns whether the value represents any valuestatic final booleanReturns whether the value represents nullabstract booleanChecks whether the given string conforms to the data type's format.static final List<DataType.DataTypeDescription<?>> list()Lists all available data types.static final <U> DataType.DataTypeDescription<U> Returns a datatype for the given class.abstract TConverts a string into a value.Von Klasse geerbte Methoden java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Felddetails
-
NULL_VALUE
The string representing the NULL value- Siehe auch:
-
ANY_VALUE
The string representing the ANY value- Siehe auch:
-
DATE
A date data type with default format dd.mm.yyyy -
DECIMAL
A generic decimal data type. -
INTEGER
A generic integer data type. -
STRING
A string data type. -
ORDERED_STRING
A ordered string data type.
-
-
Konstruktordetails
-
DataType
public DataType()
-
-
Methodendetails
-
createDate
A date data type with given format.- Parameter:
format-- Gibt zurück:
- Siehe auch:
-
createDate
A date data type with given format.- Parameter:
format-locale-- Gibt zurück:
- Siehe auch:
-
createDecimal
A decimal data type with given format.- Parameter:
format-- Gibt zurück:
- Siehe auch:
-
createDecimal
Creates a decimal data type with a format string from the given locale.- Parameter:
format-locale-- Gibt zurück:
-
createInteger
An integer data type with given format.- Parameter:
format-- Gibt zurück:
- Siehe auch:
-
createInteger
An integer data type with given format using the given locale.- Parameter:
format-locale-- Gibt zurück:
- Siehe auch:
-
createOrderedString
A ordered string type with given format.- Parameter:
format- List of ordered strings- Gibt zurück:
-
createOrderedString
A ordered string type with given format.- Parameter:
format- List of ordered strings separated by line feeds- Gibt zurück:
-
createOrderedString
A ordered string type with given format.- Parameter:
format- List of ordered strings- Gibt zurück:
-
isAny
Returns whether the value represents any value- Parameter:
value-- Gibt zurück:
-
isNull
Returns whether the value represents null- Parameter:
value-- Gibt zurück:
-
list
Lists all available data types.- Gibt zurück:
-
list
Returns a datatype for the given class.- Typparameter:
U-- Parameter:
clazz-- Gibt zurück:
-
clone
-
compare
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:
NumberFormatExceptionParseException
-
compare
Compare.- Angegeben von:
comparein SchnittstelleComparator<T>- Parameter:
t1-t2-- Gibt zurück:
-
createAggregate
Returns a new function builder.- Gibt zurück:
-
equals
- Angegeben von:
equalsin SchnittstelleComparator<T>- Setzt außer Kraft:
equalsin KlasseObject
-
format
Converts a value into a string.- Parameter:
t-- Gibt zurück:
-
getDescription
Returns a description of the data type.- Gibt zurück:
-
hashCode
public abstract int hashCode() -
isValid
Checks whether the given string conforms to the data type's format.- Parameter:
s-- Gibt zurück:
-
parse
Converts a string into a value.- Parameter:
s-- Gibt zurück:
-