Package org.apache.ignite.configuration
Interface NamedListView<VIEWT>
- Type Parameters:
VIEWT- Type for immutable snapshots of named list elements.
- All Superinterfaces:
Iterable<VIEWT>
- All Known Subinterfaces:
NamedListChange<VIEWT,CHANGET>
View type for a
NamedConfigurationTree. Represents an immutable snapshot of a named list configuration.-
Method Summary
Modifier and TypeMethodDescriptionget(int index) Returns value located at the specified index.Returns value associated with the passed key.Returns value associated with the passed internal id.default booleanisEmpty()Returns the true if this list is empty.iterator()Returns an immutable collection of keys contained within this list.intsize()Returns the number of elements in this list.stream()Returns an ordered stream of values from the named list.Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
namedListKeys
Returns an immutable collection of keys contained within this list.- Returns:
- Immutable collection of keys contained within this list.
-
get
Returns value associated with the passed key.- Parameters:
key- Key string.- Returns:
- Requested value or
nullif it's not found.
-
get
Returns value associated with the passed internal id.- Parameters:
internalId- Internal id.- Returns:
- Requested value or
nullif it's not found.
-
get
Returns value located at the specified index.- Parameters:
index- Value index.- Returns:
- Requested value.
- Throws:
IndexOutOfBoundsException- If index is out of bounds.
-
size
int size()Returns the number of elements in this list.- Returns:
- Number of elements.
-
isEmpty
default boolean isEmpty()Returns the true if this list is empty.- Returns:
- true if this list is empty.
-
stream
Returns an ordered stream of values from the named list. -
iterator
-