public class ObjectArrayWrapper extends ArrayWrapper<java.lang.Object>
| Constructor and Description |
|---|
ObjectArrayWrapper(java.lang.Object[] array) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(int index,
boolean def)
Get the value at the index as a boolean or the default value if the index is not in the array.
|
byte |
getByte(int index,
byte def)
Get the value at the index as a byte or the default value if the index is not in the array.
|
char |
getChar(int index,
char def)
Get the value at the index as a char or the default value if the index is not in the array.
|
double |
getDouble(int index,
double def)
Get the value at the index as a double or the default value if the index is not in the array.
|
float |
getFloat(int index,
float def)
Get the value at the index as a float or the default value if the index is not in the array.
|
int |
getInt(int index,
int def)
Get the value at the index as an int or the default value if the index is not in the array.
|
long |
getLong(int index,
long def)
Get the value at the index as a long or the default value if the index is not in the array.
|
short |
getShort(int index,
short def)
Get the value at the index as a char or the default value if the index is not in the array.
|
boolean |
isBoolean(int index)
Check if the value at the index is a boolean.
|
boolean |
isByte(int index)
Check if the value at the index is a byte.
|
boolean |
isChar(int index)
Check if the value at the index is a char.
|
boolean |
isDouble(int index)
Check if the value at the index is a double.
|
boolean |
isFloat(int index)
Check if the value at the index is a float.
|
boolean |
isInt(int index)
Check if the value at the index is an int.
|
boolean |
isLong(int index)
Check if the value at the index is a long.
|
boolean |
isShort(int index)
Check if the value at the index is a short.
|
ObjectArrayWrapper |
wrappedSlice(int start)
Get a wrapped slice of the array starting at the given index.
|
ObjectArrayWrapper |
wrappedSlice(int start,
int end)
Get a wrapped slice of the array starting at the given index and ending at the given index.
|
public ObjectArrayWrapper wrappedSlice(int start)
start - The index to start atpublic ObjectArrayWrapper wrappedSlice(int start, int end)
start - The index to start atend - The index to end atpublic boolean isBoolean(int index)
ArrayWrapperisBoolean in class ArrayWrapper<java.lang.Object>index - The index to checkpublic boolean isByte(int index)
ArrayWrapperisByte in class ArrayWrapper<java.lang.Object>index - The index to checkpublic boolean isShort(int index)
ArrayWrapperisShort in class ArrayWrapper<java.lang.Object>index - The index to checkpublic boolean isChar(int index)
ArrayWrapperisChar in class ArrayWrapper<java.lang.Object>index - The index to checkpublic boolean isInt(int index)
ArrayWrapperisInt in class ArrayWrapper<java.lang.Object>index - The index to checkpublic boolean isLong(int index)
ArrayWrapperisLong in class ArrayWrapper<java.lang.Object>index - The index to checkpublic boolean isFloat(int index)
ArrayWrapperisFloat in class ArrayWrapper<java.lang.Object>index - The index to checkpublic boolean isDouble(int index)
ArrayWrapperisDouble in class ArrayWrapper<java.lang.Object>index - The index to checkpublic boolean getBoolean(int index,
boolean def)
ArrayWrappergetBoolean in class ArrayWrapper<java.lang.Object>index - The index to get the value fromdef - The default valuepublic byte getByte(int index,
byte def)
ArrayWrappergetByte in class ArrayWrapper<java.lang.Object>index - The index to get the value fromdef - The default valuepublic short getShort(int index,
short def)
ArrayWrappergetShort in class ArrayWrapper<java.lang.Object>index - The index to get the value fromdef - The default valuepublic char getChar(int index,
char def)
ArrayWrappergetChar in class ArrayWrapper<java.lang.Object>index - The index to get the value fromdef - The default valuepublic int getInt(int index,
int def)
ArrayWrappergetInt in class ArrayWrapper<java.lang.Object>index - The index to get the value fromdef - The default valuepublic long getLong(int index,
long def)
ArrayWrappergetLong in class ArrayWrapper<java.lang.Object>index - The index to get the value fromdef - The default valuepublic float getFloat(int index,
float def)
ArrayWrappergetFloat in class ArrayWrapper<java.lang.Object>index - The index to get the value fromdef - The default valuepublic double getDouble(int index,
double def)
ArrayWrappergetDouble in class ArrayWrapper<java.lang.Object>index - The index to get the value fromdef - The default value