public class ObjectArrayWrapper<T>
extends java.lang.Object
| Constructor and Description |
|---|
ObjectArrayWrapper(T[] input)
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
static ObjectArrayWrapper<java.lang.Object> |
createEmpty() |
boolean |
equals(java.lang.Object object) |
T |
get(int index) |
boolean |
getBoolean(int index) |
byte |
getByte(int index) |
char |
getCharacter(int index) |
double |
getDouble(int index) |
float |
getFloat(int index) |
T[] |
getInput() |
int |
getInteger(int index) |
long |
getLong(int index) |
short |
getShort(int index) |
T[] |
getSlice(int start,
int end) |
java.lang.String |
getString(int index) |
int |
hashCode() |
boolean |
isBoolean(int index) |
boolean |
isByte(int index) |
boolean |
isCharacter(int index) |
boolean |
isDouble(int index) |
boolean |
isEmpty() |
boolean |
isFloat(int index) |
boolean |
isGreater(int length) |
boolean |
isGreaterOrEqual(int length) |
boolean |
isIndexInvalid(int index) |
boolean |
isIndexValid(int index) |
boolean |
isInteger(int index) |
boolean |
isLength(int length) |
boolean |
isLong(int index) |
boolean |
isShort(int index) |
boolean |
isSmaller(int length) |
boolean |
isSmallerOrEqual(int length) |
boolean |
isString(int index) |
int |
length() |
java.lang.String |
toString() |
public ObjectArrayWrapper(T[] input)
input - The array to wrap.public int length()
public boolean isLength(int length)
length - The length to check.public boolean isSmaller(int length)
length - The length to check.public boolean isSmallerOrEqual(int length)
length - The length to check.public boolean isGreater(int length)
length - The length to check.public boolean isGreaterOrEqual(int length)
length - The length to check.public boolean isEmpty()
public boolean isIndexValid(int index)
index - The index to check.public boolean isIndexInvalid(int index)
index - The index to check.public T[] getSlice(int start, int end)
public T get(int index)
index - The index to get.public boolean isString(int index)
index - The index to check.public java.lang.String getString(int index)
index - The index to get.public boolean isBoolean(int index)
index - The index to check.public boolean getBoolean(int index)
index - The index to get.public boolean isByte(int index)
index - The index to check.public byte getByte(int index)
index - The index to get.public boolean isShort(int index)
index - The index to check.public short getShort(int index)
index - The index to get.public boolean isInteger(int index)
index - The index to check.public int getInteger(int index)
index - The index to get.public boolean isLong(int index)
index - The index to check.public long getLong(int index)
index - The index to get.public boolean isFloat(int index)
index - The index to check.public float getFloat(int index)
index - The index to get.public boolean isDouble(int index)
index - The index to check.public double getDouble(int index)
index - The index to get.public boolean isCharacter(int index)
index - The index to check.public char getCharacter(int index)
index - The index to get.public T[] getInput()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static ObjectArrayWrapper<java.lang.Object> createEmpty()