ikrs.typesystem
Interface BasicType
- All Known Implementing Classes:
- BasicArrayType, BasicBooleanType, BasicCharType, BasicNumberType, BasicStringType, BasicTypeAdapter, BasicUUIDType
public interface BasicType
TYPE_BOOLEAN
static final int TYPE_BOOLEAN
- See Also:
- Constant Field Values
TYPE_BYTE
static final int TYPE_BYTE
- See Also:
- Constant Field Values
TYPE_SHORT
static final int TYPE_SHORT
- See Also:
- Constant Field Values
TYPE_INT
static final int TYPE_INT
- See Also:
- Constant Field Values
TYPE_LONG
static final int TYPE_LONG
- See Also:
- Constant Field Values
TYPE_FLOAT
static final int TYPE_FLOAT
- See Also:
- Constant Field Values
TYPE_DOUBLE
static final int TYPE_DOUBLE
- See Also:
- Constant Field Values
TYPE_CHAR
static final int TYPE_CHAR
- See Also:
- Constant Field Values
TYPE_STRING
static final int TYPE_STRING
- See Also:
- Constant Field Values
TYPE_UUID
static final int TYPE_UUID
- See Also:
- Constant Field Values
TYPE_ARRAY
static final int TYPE_ARRAY
- See Also:
- Constant Field Values
getType
int getType()
getBoolean
boolean getBoolean()
throws BasicTypeException
- Throws:
BasicTypeException
getBoolean
boolean getBoolean(boolean defaultValue)
getByte
byte getByte()
throws BasicTypeException
- Throws:
BasicTypeException
getByte
byte getByte(byte defaultValue)
getShort
short getShort()
throws BasicTypeException
- Throws:
BasicTypeException
getShort
short getShort(short defaultValue)
getInt
int getInt()
throws BasicTypeException
- Throws:
BasicTypeException
getInt
int getInt(int defaultValue)
getLong
long getLong()
throws BasicTypeException
- Throws:
BasicTypeException
getLong
long getLong(long defaultValue)
getFloat
float getFloat()
throws BasicTypeException
- Throws:
BasicTypeException
getFloat
float getFloat(float defaultValue)
getDouble
double getDouble()
throws BasicTypeException
- Throws:
BasicTypeException
getDouble
double getDouble(double defaultValue)
getChar
char getChar()
throws BasicTypeException
- Throws:
BasicTypeException
getChar
char getChar(char defaultValue)
getString
java.lang.String getString()
throws BasicTypeException
- Throws:
BasicTypeException
getString
java.lang.String getString(java.lang.String defaultValue)
getUUID
java.util.UUID getUUID()
throws BasicTypeException
- Throws:
BasicTypeException
getUUID
java.util.UUID getUUID(java.util.UUID defaultValue)
getArray
BasicArrayType getArray()
throws BasicTypeException
- The method is more or less for implicit type casting.
It must return this object itself with the dynamic type 'BasicArrayType'.
If this object is NOT a BasicArrayType, it MUST throw a BasicTypeException.
- Throws:
BasicTypeException
getArray
BasicArrayType getArray(BasicArrayType defaultValue)
- The method is more or less for implicit type casting.
It must return this object itself with the dynamic type 'BasicArrayType'.
If this object is NOT a BasicArrayType, it MUST return the passed defaultValue.
getArraySize
int getArraySize()
throws BasicTypeException
- Throws:
BasicTypeException
getArrayElementAt
BasicType getArrayElementAt(int index)
throws BasicTypeException,
java.lang.ArrayIndexOutOfBoundsException
- Throws:
BasicTypeException
java.lang.ArrayIndexOutOfBoundsException
equals
boolean equals(BasicType t)
equals
boolean equals(boolean b)
equals
boolean equals(byte b)
equals
boolean equals(short s)
equals
boolean equals(int i)
equals
boolean equals(long l)
equals
boolean equals(float f)
equals
boolean equals(double d)
equals
boolean equals(char c)
equals
boolean equals(java.lang.String s)
equals
boolean equals(java.util.UUID id)
equals
boolean equals(BasicArrayType a)