| Modifier and Type | Class and Description |
|---|---|
static class |
NParameterBag.EntrySet
Represents the collection of paramter bag entries.
|
static class |
NParameterBag.KeySet
Represents the collection of parameter keys.
|
static class |
NParameterBag.ValueCollection
Represents the collection of parameter values.
|
NObject.FromHandle, NObject.NObjectCallback, NObject.NObjectPropertyChangedCallbackchangedCallback, changingCallback, FLAG_REF_RET, propertyChangedCallback, stateChangedCallback| Constructor and Description |
|---|
NParameterBag(NParameterDescriptor[] parameters)
Creates a new NParameterBag from the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(NPropertyBag value)
Applies the specified parameter bag to the specified property bag.
|
void |
apply(NPropertyBag value,
boolean ignoreUnknown)
Applies the specified parameter bag to the specified property bag.
|
void |
clear()
Clears the current parameter bag.
|
boolean |
containsKey(Object key)
Checks whether the parameter bag contains the specified key.
|
boolean |
containsValue(Object value)
Checks whether the parameter bag contains the specified value.
|
NParameterBag.EntrySet |
entrySet()
Gets the current parameter bag's entry set.
|
Map.Entry<String,Object> |
get(int index)
Retrieves the parameter specified by an index.
|
Object |
get(Object key)
Retrieves the value of the parameter specified by key.
|
boolean |
isEmpty()
Checks whether the current parameter bag is empty.
|
NParameterBag.KeySet |
keySet()
Gets the current parameter bag's key set.
|
static NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
Object |
put(String key,
Object value)
Puts the specified parameter into the current parameter bag.
|
void |
putAll(Map<? extends String,? extends Object> m)
Puts the specified parameter array into the current parameter bag.
|
Object |
remove(Object key)
Removes the parameter specified by a key from the parameter bag.
|
void |
set(String key,
Object value)
Sets the value of the parameter specified by key.
|
int |
size()
Gets the number of parameters in the current parameter bag.
|
Map.Entry<String,Object>[] |
toArray() |
NPropertyBag |
toPropertyBag()
Converts a parameter bag to a property bag.
|
NParameterBag.ValueCollection |
values()
Gets the current parameter bag's value collection.
|
addListener, addPropertyChangeListener, captureProperties, claimHandle, clone, compareTo, copyProperties, dispose, disposeArray, equals, fromHandle, fromHandle, fromObject, getFlags, getHandle, getNativeType, getOwner, getProperty, getProperty, getSize, getSize, getSizeMany, getSizeMany, hashCode, invoke, invoke, invoke, isDisposed, nObjectCallbackNativeTypeOf, nObjectPropertyChangedCallbackNativeTypeOf, ref, removeListener, removePropertyChangeListener, reset, resetProperty, save, save, save, save, save, save, save, save, save, save, save, save, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, setFlags, setProperty, setProperty, toHandle, toObject, toString, toString, unref, unrefArray, unrefElementscheck, dispose, finalizecompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic NParameterBag(NParameterDescriptor[] parameters)
parameters - An array of parameters.public static NType nativeTypeOf()
public void clear()
public boolean containsKey(Object key)
containsKey in interface Map<String,Object>key - The key.public boolean containsValue(Object value)
containsValue in interface Map<String,Object>value - The value.public NParameterBag.EntrySet entrySet()
public boolean isEmpty()
public NParameterBag.KeySet keySet()
public void set(String key, Object value)
key - Parameter key.value - Value of the parameter.public Object put(String key, Object value)
public void putAll(Map<? extends String,? extends Object> m)
public Object remove(Object key)
public int size()
public NParameterBag.ValueCollection values()
public Map.Entry<String,Object> get(int index)
index - Parameter index.public void apply(NPropertyBag value)
value - The property bag.public void apply(NPropertyBag value, boolean ignoreUnknown)
value - The property bag.ignoreUnknown - true if unknown values should be ignored; else false.public NPropertyBag toPropertyBag()
Copyright © 2016 Neurotechnology. All rights reserved.