Top Description Methods
org.springframework.beans

public Interface PropertyValues

extends Iterable<PropertyValue>
Known Direct Implementers
org.springframework.beans.MutablePropertyValues
Imports
java.util.Arrays, .Iterator, .Spliterator, .Spliterators, java.util.stream.Stream, .StreamSupport, org.springframework.lang.Nullable

Holder containing one or more PropertyValue objects, typically comprising one update for a specific target bean.
Authors
Rod Johnson, Juergen Hoeller
Since
13 May 2001
See Also
PropertyValue

Method Summary

Modifier and TypeMethod and Description
public PropertyValues

Returns:

the updated or new properties. Return empty PropertyValues if there are no changes.
changesSince
(PropertyValues
the old property values
old
)

Return the changes since the previous PropertyValues.

public boolean

Returns:

whether there is a property value for this property
contains
(String
the name of the property we're interested in
propertyName
)

Is there a property value (or other processing entry) for this property?

public PropertyValue

Returns:

the property value, or null if none
getPropertyValue
(String
the name to search for
propertyName
)

Return the property value with the given name, if any.

public PropertyValue[]
getPropertyValues()

Return an array of the PropertyValue objects held in this object.

public boolean
isEmpty()

Does this holder not contain any PropertyValue objects at all?

public default Iterator<PropertyValue>
iterator()

Implements java.lang.Iterable.iterator.

Return an Iterator over the property values.
public default Spliterator<PropertyValue>
spliterator()

Overrides default java.lang.Iterable.spliterator.

Return a Spliterator over the property values.
public default Stream<PropertyValue>
stream()

Return a sequential Stream containing the property values.

Inherited from java.lang.Iterable:
forEach

Method Detail

changesSinceback to summary
public PropertyValues changesSince(PropertyValues old)

Return the changes since the previous PropertyValues. Subclasses should also override equals.

Parameters
old:PropertyValues

the old property values

Returns:PropertyValues

the updated or new properties. Return empty PropertyValues if there are no changes.

See Also
Object#equals
containsback to summary
public boolean contains(String propertyName)

Is there a property value (or other processing entry) for this property?

Parameters
propertyName:String

the name of the property we're interested in

Returns:boolean

whether there is a property value for this property

getPropertyValueback to summary
public PropertyValue getPropertyValue(String propertyName)

Return the property value with the given name, if any.

Parameters
propertyName:String

the name to search for

Returns:PropertyValue

the property value, or null if none

Annotations
@Nullable
getPropertyValuesback to summary
public PropertyValue[] getPropertyValues()

Return an array of the PropertyValue objects held in this object.

isEmptyback to summary
public boolean isEmpty()

Does this holder not contain any PropertyValue objects at all?

iteratorback to summary
public default Iterator<PropertyValue> iterator()

Implements java.lang.Iterable.iterator.

Return an Iterator over the property values.

Returns:Iterator<PropertyValue>

Doc from java.lang.Iterable.iterator.

an Iterator.

Annotations
@Override
Since
5.1
spliteratorback to summary
public default Spliterator<PropertyValue> spliterator()

Overrides default java.lang.Iterable.spliterator.

Return a Spliterator over the property values.

Returns:Spliterator<PropertyValue>

Doc from java.lang.Iterable.spliterator.

a Spliterator over the elements described by this Iterable.

Annotations
@Override
Since
5.1
streamback to summary
public default Stream<PropertyValue> stream()

Return a sequential Stream containing the property values.

Since
5.1