Interface IPropertyContainerConst
- All Superinterfaces:
IPropertyHolderConst, Iterable<PropertyValuePair<?>>
- All Known Implementing Classes:
PropertyContainer, PropertyContainerSnapshot
public sealed interface IPropertyContainerConst
extends IPropertyHolderConst, Iterable<PropertyValuePair<?>>
permits PropertyContainer, PropertyContainerSnapshot
Represents a read-only property container.
This interface is used to get the values of properties from a property container.
This is a specialization of IPropertyHolderConst that is used specifically for property containers.
-
Method Summary
Modifier and TypeMethodDescriptioniterator()Returns a read-only iterator over the properties in this container.Returns a read-only spliterator over the properties in this container.default Stream<PropertyValuePair<?>> stream()Returns aStreamof the properties in this container.Methods inherited from interface IPropertyHolderConst
getPropertyValue, getRequiredPropertyValue, hasProperties, hasProperties, hasProperties, hasProperty, propertyCount
-
Method Details
-
iterator
Iterator<PropertyValuePair<?>> iterator()Returns a read-only iterator over the properties in this container.Any properties that are either unmapped or of the wrong type are excluded.
- Specified by:
iteratorin interfaceIterable<PropertyValuePair<?>>- Returns:
- A read-only iterator over the properties in this container.
-
spliterator
Spliterator<PropertyValuePair<?>> spliterator()Returns a read-only spliterator over the properties in this container.Any properties that are either unmapped or of the wrong type are excluded.
- Specified by:
spliteratorin interfaceIterable<PropertyValuePair<?>>- Returns:
- A read-only spliterator over the properties in this container.
-
stream
Returns aStreamof the properties in this container.This works the same as
Collection.stream().Any properties that are either unmapped or of the wrong type are excluded.
- Returns:
- A
Streamof the properties in this container.
-