T
- the kind of values in this containerpublic class PriorityValue<T> extends Object
Constructor and Description |
---|
PriorityValue() |
public boolean set(Priority priority, T value)
priority
- the priority of value
value
- the new value, can be null
true
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 priority
public T get()
null