V - atomic value typepublic final class ValueEvent<V> extends AbstractEvent<ValueEvent.Type,Void>
| Modifier and Type | Class and Description |
|---|---|
static class |
ValueEvent.Type
ValueEvent type.
|
| Constructor and Description |
|---|
ValueEvent(ValueEvent.Type type,
V newValue,
V oldValue)
Creates a new event object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
V |
newValue()
Returns the newly set value.
|
V |
oldValue()
Returns the old replaced value.
|
String |
toString() |
subject, time, typepublic ValueEvent(ValueEvent.Type type, V newValue, V oldValue)
newValue - the new valueoldValue - the old valuepublic V newValue()
public V oldValue()
public String toString()
toString in class AbstractEvent<ValueEvent.Type,Void>Copyright © 2013–2018. All rights reserved.