T
- the kind of item this PriorityValue
stores@FrameworkOnly public class UIPriorityValue<T> extends PriorityValue<UIPriorityValue.Value<T>>
PriorityValue
that supports working with UIScheme
s.Modifier and Type | Class and Description |
---|---|
static interface |
UIPriorityValue.Value<T>
Represents a single entry in this map.
|
Constructor and Description |
---|
UIPriorityValue() |
Modifier and Type | Method and Description |
---|---|
UIScheme<?,?,?> |
getScheme(Priority priority)
Gets the scheme that created the entry with
priority . |
T |
getValue()
Gets the current value of this
UIPriorityValue . |
T |
getValue(Priority priority)
Gets the current value of
UIPriorityValue on level priority . |
boolean |
isAllScheme()
Tells whether all entries of this value are either
null or
are created by an UIScheme . |
boolean |
set(Priority priority,
T value,
UIScheme<?,?,?> scheme)
Sets the value of
this using a value that may be
derived from scheme . |
get, get, set
public boolean set(Priority priority, T value, UIScheme<?,?,?> scheme)
this
using a value that may be
derived from scheme
.priority
- the priority of the value to setvalue
- the value that is to be set, can be null
scheme
- the scheme that created value
or null
, ignored
if value
is null
true
if the value of this scheme changed because of
the call to this methodpublic UIScheme<?,?,?> getScheme(Priority priority)
priority
.priority
- the priority of the entry that is queriednull
public boolean isAllScheme()
null
or
are created by an UIScheme
.true
if all entries of this value are null
or createdpublic T getValue()
UIPriorityValue
.null
public T getValue(Priority priority)
UIPriorityValue
on level priority
.priority
- the level to search, not null
null