public final class Value extends Object
null and no object being present. The id field is need for quicker comparison in hashCode()
and equals(Object) and is only valid when comparing values inside one Parameter.| Constructor and Description |
|---|
Value(int id,
Object data)
Creates a new value with the given id and object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
Object |
get() |
int |
getId() |
int |
hashCode() |
String |
toString() |
static Value |
value(int id,
Object data)
Convenience method which can be statically imported for easier and more readable code.
|
public Value(int id,
Object data)
id - an id which should be unique inside the values parameterdata - the data value to be saved. Can be nullpublic int getId()
public Object get()
nullpublic static Value value(int id, Object data)
id - an id which should be unique inside the values parameterdata - the data value to be saved. Can be nullCopyright © 2019. All rights reserved.