public class BoundPropertySetDiff extends PropertySetDiff implements BoundPropertySet
EMPTY
EMPTY
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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
extend, newDefaultInstance, newExtension
builder, getExtension, isExtended, isInherited
merge, set, set
get, getOrDefault, getOrElse, getProperties
public BoundPropertySetDiff()
public BoundPropertySetDiff(PropertySet copy)
public boolean isBound(Property<?> prop)
isBound
in interface BoundPropertySet
public boolean isModified(Property<?> prop)
isModified
in interface PropertySetEdit
isModified
in interface VersionedPropertySet
isModified
in class PropertySetDiff
public void setBoundValue(Property<?> prop, BoundValue value)
setBoundValue
in interface BoundPropertySet
public void remove(Property<?> prop)
remove
in interface MutablePropertyValueSource
remove
in class PropertySetDiff
protected void setRaw(Property<?> prop, java.lang.Object value)
setRaw
in class PropertySetDiff
public BoundValue getBoundValue(Property<?> prop)
getBoundValue
in interface BoundPropertySet
public java.util.Collection<Property<?>> getBoundProperties()
getBoundProperties
in interface BoundPropertySet
public void revert(Property<?> property)
PropertySetDiff
revert
in interface PropertySetEdit
revert
in class PropertySetDiff
public boolean contains(Property<?> prop)
contains
in interface PropertyValueSource
contains
in class PropertySetDiff
public int getCount()
PropertySetDiff
getCount
in interface Countable
getCount
in class PropertySetDiff
public boolean hasChanges()
hasChanges
in class PropertySetDiff
public java.util.List<PropertyValue> getValues()
getValues
in interface PropertyValueSource
getValues
in class PropertySetDiff