public class ListBindingSet extends AbstractBindingSet
BindingSet interface.| Constructor and Description |
|---|
ListBindingSet(List<String> bindingNames,
List<? extends Value> values)
Creates a new List-based BindingSet containing the supplied bindings.
|
ListBindingSet(List<String> names,
Value... values)
Creates a new List-based BindingSet containing the supplied bindings.
|
| Modifier and Type | Method and Description |
|---|---|
Binding |
getBinding(String bindingName)
Gets the binding with the specified name from this BindingSet.
|
Set<String> |
getBindingNames()
Gets the names of the bindings in this BindingSet.
|
Value |
getValue(String bindingName)
Gets the value of the binding with the specified name from this BindingSet.
|
boolean |
hasBinding(String bindingName)
Checks whether this BindingSet has a binding with the specified name.
|
Iterator<Binding> |
iterator()
Creates an iterator over the bindings in this BindingSet.
|
int |
size()
Returns the number of bindings in this BindingSet.
|
equals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic ListBindingSet(List<String> names, Value... values)
names - The binding names.values - The binding values.public ListBindingSet(List<String> bindingNames, List<? extends Value> values)
bindingNames - The binding names.values - The binding values.public Set<String> getBindingNames()
BindingSetpublic Value getValue(String bindingName)
BindingSetbindingName - The name of the binding.public Binding getBinding(String bindingName)
BindingSetbindingName - The name of the binding.public boolean hasBinding(String bindingName)
BindingSetbindingName - The name of the binding.public Iterator<Binding> iterator()
BindingSetpublic int size()
BindingSetCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.