Class UnionSetProperty<S,E>
- java.lang.Object
-
- org.eclipse.core.databinding.property.set.SetProperty<S,E>
-
- org.eclipse.core.databinding.property.set.UnionSetProperty<S,E>
-
- Type Parameters:
S- type of the source objectE- type of the elements in the set
- All Implemented Interfaces:
IProperty,ISetProperty<S,E>
public class UnionSetProperty<S,E> extends SetProperty<S,E>
A set property for observing the union of multiple set properties a combined set.- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor Description UnionSetProperty(ISetProperty<S,E>[] properties)UnionSetProperty(ISetProperty<S,E>[] properties, Object elementType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<E>doGetSet(S source)Returns a Set with the current contents of the source's set propertyprotected voiddoSetSet(S source, Set<E> set)Updates the property on the source with the specified change.protected voiddoUpdateSet(S source, SetDiff<E> diff)Updates the property on the source with the specified change.ObjectgetElementType()Returns the type of the elements in the collection ornullif untypedIObservableSet<E>observe(Realm realm, S source)Returns an observable set observing this set property on the given property source-
Methods inherited from class org.eclipse.core.databinding.property.set.SetProperty
getSet, observe, observeDetail, setFactory, setFactory, setSet, updateSet, values
-
-
-
-
Constructor Detail
-
UnionSetProperty
public UnionSetProperty(ISetProperty<S,E>[] properties)
- Parameters:
properties-
-
UnionSetProperty
public UnionSetProperty(ISetProperty<S,E>[] properties, Object elementType)
- Parameters:
properties-elementType-
-
-
Method Detail
-
getElementType
public Object getElementType()
Description copied from interface:ISetPropertyReturns the type of the elements in the collection ornullif untyped- Returns:
- the type of the elements in the collection or
nullif untyped
-
doGetSet
protected Set<E> doGetSet(S source)
Description copied from class:SetPropertyReturns a Set with the current contents of the source's set property- Overrides:
doGetSetin classSetProperty<S,E>- Parameters:
source- the property source- Returns:
- a Set with the current contents of the source's set property
-
doSetSet
protected void doSetSet(S source, Set<E> set)
Description copied from class:SetPropertyUpdates the property on the source with the specified change.- Overrides:
doSetSetin classSetProperty<S,E>- Parameters:
source- the property sourceset- the new set
-
doUpdateSet
protected void doUpdateSet(S source, SetDiff<E> diff)
Description copied from class:SetPropertyUpdates the property on the source with the specified change.- Overrides:
doUpdateSetin classSetProperty<S,E>- Parameters:
source- the property sourcediff- a diff describing the change
-
observe
public IObservableSet<E> observe(Realm realm, S source)
Description copied from interface:ISetPropertyReturns an observable set observing this set property on the given property source- Parameters:
realm- the observable's realmsource- the property source- Returns:
- an observable set observing this set property on the given property source
-
-