Class BoundPropertySetDiff
- java.lang.Object
-
- com.inductiveautomation.ignition.common.config.PropertySetDiff
-
- com.inductiveautomation.ignition.common.config.BoundPropertySetDiff
-
- All Implemented Interfaces:
BoundPropertySet,Countable,Extendable<PropertySet>,Mergable<PropertySet>,MutablePropertyValueSource,PropertySet,PropertySetEdit,PropertyValueSource,VersionedPropertySet,java.io.Serializable,java.lang.Iterable<PropertyValue>
public class BoundPropertySetDiff extends PropertySetDiff implements BoundPropertySet
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
EMPTY
-
Fields inherited from interface com.inductiveautomation.ignition.common.config.VersionedPropertySet
EMPTY
-
-
Constructor Summary
Constructors Constructor Description BoundPropertySetDiff()BoundPropertySetDiff(PropertySet copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(Property<?> prop)java.util.Collection<Property<?>>getBoundProperties()BoundValuegetBoundValue(Property<?> prop)intgetCount()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()booleanhasChanges()booleanisBound(Property<?> prop)booleanisModified(Property<?> prop)protected java.util.Map<Property<?>,BoundValue>modifiedBindings()voidremove(Property<?> prop)voidrevert(Property<?> property)Removes the property from the modified map, but unlike "remove", doesn't add it to the removed set.voidsetBoundValue(Property<?> prop, BoundValue value)protected voidsetRaw(Property<?> prop, java.lang.Object value)-
Methods inherited from class com.inductiveautomation.ignition.common.config.PropertySetDiff
compactChanges, get, getModified, getOrDefault, getOrElse, getProperties, getRaw, getRemoved, isExtended, isInherited, isRemoved, iterator, set, set, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.common.config.BoundPropertySet
extend, getBoundOrDefault, newDefaultInstance, newExtension
-
Methods inherited from interface com.inductiveautomation.ignition.common.config.MutablePropertyValueSource
merge, set, set
-
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
getExtension, isExtended, isInherited
-
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertyValueSource
get, getNonNull, getNonNull, getOrDefault, getOrElse, getProperties
-
-
-
-
Constructor Detail
-
BoundPropertySetDiff
public BoundPropertySetDiff()
-
BoundPropertySetDiff
public BoundPropertySetDiff(PropertySet copy)
-
-
Method Detail
-
modifiedBindings
protected java.util.Map<Property<?>,BoundValue> modifiedBindings()
-
isBound
public boolean isBound(Property<?> prop)
- Specified by:
isBoundin interfaceBoundPropertySet
-
isModified
public boolean isModified(Property<?> prop)
- Specified by:
isModifiedin interfacePropertySetEdit- Specified by:
isModifiedin interfaceVersionedPropertySet- Overrides:
isModifiedin classPropertySetDiff
-
setBoundValue
public void setBoundValue(Property<?> prop, BoundValue value)
- Specified by:
setBoundValuein interfaceBoundPropertySet
-
remove
public void remove(Property<?> prop)
- Specified by:
removein interfaceMutablePropertyValueSource- Overrides:
removein classPropertySetDiff
-
setRaw
protected void setRaw(Property<?> prop, java.lang.Object value)
- Overrides:
setRawin classPropertySetDiff
-
getBoundValue
public BoundValue getBoundValue(Property<?> prop)
- Specified by:
getBoundValuein interfaceBoundPropertySet
-
getBoundProperties
public java.util.Collection<Property<?>> getBoundProperties()
- Specified by:
getBoundPropertiesin interfaceBoundPropertySet
-
revert
public void revert(Property<?> property)
Description copied from class:PropertySetDiffRemoves the property from the modified map, but unlike "remove", doesn't add it to the removed set.- Specified by:
revertin interfacePropertySetEdit- Overrides:
revertin classPropertySetDiff
-
contains
public boolean contains(Property<?> prop)
- Specified by:
containsin interfacePropertyValueSource- Overrides:
containsin classPropertySetDiff- Returns:
- True if the source contains a value for prop.
-
getCount
public int getCount()
Description copied from class:PropertySetDiffFor 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.- Specified by:
getCountin interfaceCountable- Overrides:
getCountin classPropertySetDiff
-
hasChanges
public boolean hasChanges()
- Overrides:
hasChangesin classPropertySetDiff
-
getValues
public java.util.List<PropertyValue> getValues()
- Specified by:
getValuesin interfaceBoundPropertySet- Specified by:
getValuesin interfacePropertyValueSource- Overrides:
getValuesin classPropertySetDiff
-
-