|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.util.NullPriorityValue<T>
T
- the kind of value stored in this NullPriorityValue
public class NullPriorityValue<T>
This container holds three versions of the same value, a default, theme and
a client value. If asked for the value the value with the highest priority
is returned. Other than PriorityValue
this container also supports
null
as value.
Constructor Summary | |
---|---|
NullPriorityValue()
|
Method Summary | |
---|---|
T |
get()
Gets the current value with the highest priority. |
T |
get(Priority priority)
Gets the value for a given priority. |
boolean |
isSet(Priority priority)
Tells whether the value for priority is set. |
boolean |
isSomethingSet()
Tells whether at least one version is set. |
boolean |
set(Priority priority,
T value)
Sets the value for a given priority. |
boolean |
unset(Priority priority)
Removes the value for priority . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullPriorityValue()
Method Detail |
---|
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 boolean isSomethingSet()
true
if at least some value is setpublic boolean isSet(Priority priority)
priority
is set.
priority
- the priority to inquire
true
if the value is setpublic boolean unset(Priority priority)
priority
.
priority
- the priority to clean
true
if the result of get()
changes because of the call to this methodpublic T get(Priority priority)
priority
- the priority for which the value is requested
set(Priority, Object)
for priority
public T get()
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |