T - the kind of values in this containerpublic class PriorityValue<T> extends Object
| Constructor and Description |
|---|
PriorityValue() |
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Gets the current value with the highest priority.
|
T |
get(Priority priority)
Gets the value for a given priority.
|
boolean |
set(Priority priority,
T value)
Sets the value for a given priority.
|
public boolean set(Priority priority, T value)
priority - the priority of valuevalue - the new value, can be nulltrue if the result of get()
changes because of the call of this methodpublic T get(Priority priority)
priority - the priority for which the value is requestedset(Priority, Object) for prioritypublic T get()
nullCopyright © 2017 Docking Frames. All rights reserved.