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 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:
      iterator in interface Iterable<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:
      spliterator in interface Iterable<PropertyValuePair<?>>
      Returns:
      A read-only spliterator over the properties in this container.
    • stream

      default Stream<PropertyValuePair<?>> stream()
      Returns a Stream of 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 Stream of the properties in this container.