接口 PropertyValues
- 所有超级接口:
Iterable<PropertyValue>
public interface PropertyValues extends Iterable<PropertyValue>
Holder containing one or morePropertyValue
objects, typically comprising one update for a specific target bean.- 从以下版本开始:
- 13 May 2001
- 作者:
- Rod Johnson, Juergen Hoeller
- 另请参阅:
PropertyValue
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 PropertyValues
changesSince(PropertyValues old)
Return the changes since the previous PropertyValues.boolean
contains(String propertyName)
Is there a property value (or other processing entry) for this property?PropertyValue
getPropertyValue(String propertyName)
Return the property value with the given name, if any.PropertyValue[]
getPropertyValues()
Return an array of the PropertyValue objects held in this object.boolean
isEmpty()
Does this holder not contain any PropertyValue objects at all?default Iterator<PropertyValue>
iterator()
Return anIterator
over the property values.default Spliterator<PropertyValue>
spliterator()
Return aSpliterator
over the property values.default Stream<PropertyValue>
stream()
Return a sequentialStream
containing the property values.
方法详细资料
iterator
default Iterator<PropertyValue> iterator()
Return anIterator
over the property values.- 指定者:
iterator
在接口中Iterable<PropertyValue>
- 从以下版本开始:
- 5.1
spliterator
default Spliterator<PropertyValue> spliterator()
Return aSpliterator
over the property values.- 指定者:
spliterator
在接口中Iterable<PropertyValue>
- 从以下版本开始:
- 5.1
stream
default Stream<PropertyValue> stream()
Return a sequentialStream
containing the property values.- 从以下版本开始:
- 5.1
getPropertyValues
PropertyValue[] getPropertyValues()
Return an array of the PropertyValue objects held in this object.
getPropertyValue
@Nullable PropertyValue getPropertyValue(String propertyName)
Return the property value with the given name, if any.- 参数:
propertyName
- the name to search for- 返回:
- the property value, or
null
if none
changesSince
PropertyValues changesSince(PropertyValues old)
Return the changes since the previous PropertyValues. Subclasses should also overrideequals
.- 参数:
old
- the old property values- 返回:
- the updated or new properties. Return empty PropertyValues if there are no changes.
- 另请参阅:
Object.equals(java.lang.Object)
contains
boolean contains(String propertyName)
Is there a property value (or other processing entry) for this property?- 参数:
propertyName
- the name of the property we're interested in- 返回:
- whether there is a property value for this property
isEmpty
boolean isEmpty()
Does this holder not contain any PropertyValue objects at all?