public class Properties extends Object
Constructor and Description |
---|
Properties() |
Modifier and Type | Method and Description |
---|---|
static <T> IValueProperty<IObservableValue<T>,T> |
observableValue(Object valueType)
Returns a value property which observes the value of an
IObservableValue . |
static <K,V,P> IObservableMap<K,? extends P>[] |
observeEach(IObservableMap<K,V> domainMap,
IValueProperty<? super V,? extends P>... properties)
Returns an array of observable maps where each maps observes the
corresponding value property on all elements in the given domain map's
values collection, for each property in the given
array. |
static <E,P> IObservableMap<E,? extends P>[] |
observeEach(IObservableSet<E> domainSet,
IValueProperty<? super E,? extends P>... properties)
Returns an array of observable maps where each map observes the
corresponding value property on all elements in the given domain set, for
each property in the given array.
|
static <E> IListProperty<List<E>,E> |
selfList(Object elementType)
Returns a list property which takes the source object (a
List ) as
the property list. |
static <K,V> IMapProperty<Map<K,V>,K,V> |
selfMap(Object keyType,
Object valueType)
Returns a map property which takes the source object (a
Map ) as
the property map. |
static <E> ISetProperty<Set<E>,E> |
selfSet(Object elementType)
Returns a set property which takes the source object (a
Set ) as
the property set. |
static <T> IValueProperty<T,T> |
selfValue(Object valueType)
Returns a value property which takes the source object itself as the
property value.
|
@SafeVarargs public static <E,P> IObservableMap<E,? extends P>[] observeEach(IObservableSet<E> domainSet, IValueProperty<? super E,? extends P>... properties)
domainSet
- properties
- @SafeVarargs public static <K,V,P> IObservableMap<K,? extends P>[] observeEach(IObservableMap<K,V> domainMap, IValueProperty<? super V,? extends P>... properties)
values
collection, for each property in the given
array.domainMap
- the map of elements whose properties will be observedproperties
- array of value properties to observe on each element in the
domain map's values
collectionvalues
collection, for each property
in the given arraypublic static <T> IValueProperty<T,T> selfValue(Object valueType)
IObservableValue
.valueType
- the value type of the propertypublic static <E> IListProperty<List<E>,E> selfList(Object elementType)
List
) as
the property list. This property may be used to wrap an arbitrary List
instance in an IObservableList
.elementType
- the element type of the propertyList
) as
the property list.public static <E> ISetProperty<Set<E>,E> selfSet(Object elementType)
Set
) as
the property set. This property may be used to wrap an arbitrary Set
instance in an IObservableSet
.elementType
- the element type of the propertySet
) as
the property set.public static <K,V> IMapProperty<Map<K,V>,K,V> selfMap(Object keyType, Object valueType)
Map
) as
the property map. This property may be used to wrap an arbitrary Map
instance in an IObservableMap
.keyType
- the key type of the propertyvalueType
- the value type of the propertyMap
as
the property map.public static <T> IValueProperty<IObservableValue<T>,T> observableValue(Object valueType)
IObservableValue
. This property may be used e.g. for observing
the respective values of an IObservableList
<
IObservableValue
>.
Calls to IValueProperty.observe(Object)
or
IValueProperty.observe(Realm, Object)
just cast the argument to
IObservableValue
and return it (the realm argument is ignored).
valueType
- the value type of the propertyIObservableValue
.
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.