Class StreamFieldDictComponents
java.lang.Object
com.singularsys.jep.misc.OneShotComponent
com.singularsys.jep.misc.dictionary.DictionaryComponents
com.singularsys.extensions.stream.dictionary.StreamFieldDictComponents
- All Implemented Interfaces:
JepComponent,Serializable
Provides a set of components for using
dictionaries compatible with the
com.singularsys.extensions.stream package
and using a FieldI.
The FieldI.eq(Object, Object) method is used to compare keys
in the get(dict,'x'), getOr(dict,'x'), put(dict,'x'),
remove(dict,'x'), and containsKey(dict,'x') functions.
The treeSet() is setup to use FieldComparator for ordering elements.
Most functions are as in DictionaryComponents apart from
entries(dict), keys(dict) and values(dict)
which return streams rather than lists.
See DictionaryComponents for the main documentation.
Three components
EntriesIterable,
KeysIterable and
ValuesIterable, are not included
by default, as they are intended to be used by the
com.singularsys.extensions.stream package. These can be added manually or by editing the properties file.
- Since:
- Jep 4.1 extensions 2.2
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.singularsys.jep.misc.dictionary.DictionaryComponents
DictionaryComponents.DictionaryKeys, DictionaryComponents.Type -
Field Summary
Fields inherited from class com.singularsys.jep.misc.dictionary.DictionaryComponents
nullValue -
Constructor Summary
ConstructorsConstructorDescriptionStreamFieldDictComponents(DictionaryComponents.Type type, FieldI mfield) StreamFieldDictComponents(DictionaryComponents.Type type, Object nullValue, FieldI mfield) -
Method Summary
Methods inherited from class com.singularsys.jep.misc.dictionary.DictionaryComponents
firstInit, getNullValue, getType, putIfSetMethods inherited from class com.singularsys.jep.misc.OneShotComponent
getLightWeightInstance, init
-
Constructor Details
-
StreamFieldDictComponents
-
StreamFieldDictComponents
-
-
Method Details
-
addFunctions
- Overrides:
addFunctionsin classDictionaryComponents
-