|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.util.PriorityValue<T>
T - the kind of values in this containerpublic class PriorityValue<T>
A container for three values of different priority.
| Constructor Summary | |
|---|---|
PriorityValue()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PriorityValue()
| Method Detail |
|---|
public boolean set(Priority priority,
T value)
priority - the priority of valuevalue - 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 requested
set(Priority, Object) for prioritypublic T get()
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||