public class BoundPropertySetDiff extends PropertySetDiff implements BoundPropertySet
EMPTYEMPTY| Constructor and Description |
|---|
BoundPropertySetDiff() |
BoundPropertySetDiff(PropertySet copy) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Property<?> prop) |
java.util.Collection<Property<?>> |
getBoundProperties() |
BoundValue |
getBoundValue(Property<?> prop) |
int |
getCount()
For the diff, returns the combined size of modified and removed, so it can be used to see if there are any
changes, as the value will be >0.
|
java.util.List<PropertyValue> |
getValues() |
boolean |
hasChanges() |
boolean |
isBound(Property<?> prop) |
boolean |
isModified(Property<?> prop) |
void |
remove(Property<?> prop) |
void |
revert(Property<?> property)
Removes the property from the modified map, but unlike "remove", doesn't add it to the removed set.
|
void |
setBoundValue(Property<?> prop,
BoundValue value) |
protected void |
setRaw(Property<?> prop,
java.lang.Object value) |
compactChanges, get, getModified, getOrDefault, getOrElse, getProperties, getRaw, getRemoved, isExtended, isInherited, isRemoved, iterator, set, set, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitextend, newDefaultInstance, newExtensionbuilder, getExtension, isExtended, isInheritedmerge, set, setget, getOrDefault, getOrElse, getPropertiespublic BoundPropertySetDiff()
public BoundPropertySetDiff(PropertySet copy)
public boolean isBound(Property<?> prop)
isBound in interface BoundPropertySetpublic boolean isModified(Property<?> prop)
isModified in interface PropertySetEditisModified in interface VersionedPropertySetisModified in class PropertySetDiffpublic void setBoundValue(Property<?> prop, BoundValue value)
setBoundValue in interface BoundPropertySetpublic void remove(Property<?> prop)
remove in interface MutablePropertyValueSourceremove in class PropertySetDiffprotected void setRaw(Property<?> prop, java.lang.Object value)
setRaw in class PropertySetDiffpublic BoundValue getBoundValue(Property<?> prop)
getBoundValue in interface BoundPropertySetpublic java.util.Collection<Property<?>> getBoundProperties()
getBoundProperties in interface BoundPropertySetpublic void revert(Property<?> property)
PropertySetDiffrevert in interface PropertySetEditrevert in class PropertySetDiffpublic boolean contains(Property<?> prop)
contains in interface PropertyValueSourcecontains in class PropertySetDiffpublic int getCount()
PropertySetDiffgetCount in interface CountablegetCount in class PropertySetDiffpublic boolean hasChanges()
hasChanges in class PropertySetDiffpublic java.util.List<PropertyValue> getValues()
getValues in interface PropertyValueSourcegetValues in class PropertySetDiff