org.springframework.beans

Interface PropertyValues

    • Method Detail

      • iterator

        default java.util.Iterator<PropertyValue> iterator()
        Return an Iterator over the property values.
        Specified by:
        iterator in interface java.lang.Iterable<PropertyValue>
        Since:
        5.1
      • spliterator

        default java.util.Spliterator<PropertyValue> spliterator()
        Return a Spliterator over the property values.
        Specified by:
        spliterator in interface java.lang.Iterable<PropertyValue>
        Since:
        5.1
      • stream

        default java.util.stream.Stream<PropertyValue> stream()
        Return a sequential Stream containing the property values.
        Since:
        5.1
      • getPropertyValues

        PropertyValue[] getPropertyValues()
        Return an array of the PropertyValue objects held in this object.
      • getPropertyValue

        @Nullable
        PropertyValue getPropertyValue(java.lang.String propertyName)
        Return the property value with the given name, if any.
        Parameters:
        propertyName - the name to search for
        Returns:
        the property value, or null if none
      • changesSince

        PropertyValues changesSince(PropertyValues old)
        Return the changes since the previous PropertyValues. Subclasses should also override equals.
        Parameters:
        old - old property values
        Returns:
        the updated or new properties. Return empty PropertyValues if there are no changes.
        See Also:
        Object.equals(java.lang.Object)
      • contains

        boolean contains(java.lang.String propertyName)
        Is there a property value (or other processing entry) for this property?
        Parameters:
        propertyName - the name of the property we're interested in
        Returns:
        whether there is a property value for this property
      • isEmpty

        boolean isEmpty()
        Does this holder not contain any PropertyValue objects at all?