T - the type of the data holdpublic final class WaveData<T> extends Object implements Comparable<WaveData<?>>
| Modifier and Type | Field and Description |
|---|---|
private int |
order
The field used for sorting.
|
private T |
value
The value data.
|
private WaveItem<T> |
waveItem
The key property, must be set with an enumeration that implements WaveItem.
|
| Modifier | Constructor and Description |
|---|---|
private |
WaveData(WaveItem<T> waveItem,
T value)
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> WaveData<T> |
build(WaveItem<T> waveItem,
T value)
Build a wave data.
|
int |
compareTo(WaveData<?> waveData) |
boolean |
equals(Object obj) |
WaveItem<T> |
getKey() |
int |
getOrder() |
T |
getValue() |
int |
hashCode() |
void |
setKey(WaveItem<T> waveItem) |
void |
setOrder(int order) |
void |
setValue(T value) |
private WaveItem<T> waveItem
private T value
private int order
public static <T> WaveData<T> build(WaveItem<T> waveItem, T value)
T - the type of the object wrapped by this WaveDatawaveItem - the wave item used as the key into the wavevalue - the data hold by he wave data wrapperpublic T getValue()
public void setValue(T value)
value - the value to setpublic int getOrder()
public void setOrder(int order)
order - The order to set.public int compareTo(WaveData<?> waveData)
compareTo in interface Comparable<WaveData<?>>Copyright © 2011–2014 JRebirth OSS. All rights reserved.