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,Serializable,Iterable<PropertyValue>
- See Also:
-
Field Summary
Fields inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCollection<Property<?>>getBoundValue(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.Collection<Property<?>>Returns the opaque PropertyValue objects.booleanbooleanbooleanisModified(Property<?> prop) protected Map<Property<?>,BoundValue> voidvoidRemoves the property from the modified map, but unlike "remove", doesn't add it to the removed set.voidsetBoundValue(Property<?> prop, BoundValue value) protected voidMethods inherited from class com.inductiveautomation.ignition.common.config.PropertySetDiff
compactChanges, get, getOrDefault, getOrElse, getRaw, getRemoved, isExtended, isInherited, isRemoved, iterator, set, set, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.common.config.BoundPropertySet
extend, getBoundOrDefault, newDefaultInstance, newExtensionMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface com.inductiveautomation.ignition.common.config.MutablePropertyValueSource
merge, set, setMethods inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
getExtension, isExtended, isInheritedMethods inherited from interface com.inductiveautomation.ignition.common.config.PropertyValueSource
get, getNonNull, getNonNull, getOrDefault, getOrElse
-
Constructor Details
-
BoundPropertySetDiff
public BoundPropertySetDiff() -
BoundPropertySetDiff
-
-
Method Details
-
modifiedBindings
-
isBound
- Specified by:
isBoundin interfaceBoundPropertySet
-
isModified
- Specified by:
isModifiedin interfacePropertySetEdit- Overrides:
isModifiedin classPropertySetDiff
-
getModified
- Overrides:
getModifiedin classPropertySetDiff
-
setBoundValue
- Specified by:
setBoundValuein interfaceBoundPropertySet
-
remove
- Specified by:
removein interfaceMutablePropertyValueSource- Overrides:
removein classPropertySetDiff
-
setRaw
- Overrides:
setRawin classPropertySetDiff
-
getBoundValue
- Specified by:
getBoundValuein interfaceBoundPropertySet
-
getBoundProperties
- Specified by:
getBoundPropertiesin interfaceBoundPropertySet
-
revert
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
- 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
-
getProperties
- Specified by:
getPropertiesin interfacePropertyValueSource- Overrides:
getPropertiesin classPropertySetDiff
-
hasChanges
public boolean hasChanges()- Overrides:
hasChangesin classPropertySetDiff
-
getValues
Description copied from interface:PropertyValueSourceReturns the opaque PropertyValue objects. This can be useful when you want to avoid the strict type checking of the value, and it's important to note that if the property is bound, the value will be a BoundValue. Be very careful about overriding, and make sure to maintain the methodology of using getProperties to iterate and get (or getOrDefault), to get the value, because those are all handled differently by BoundPropertySets, ExtendedPropertySets, etc.- Specified by:
getValuesin interfaceBoundPropertySet- Specified by:
getValuesin interfacePropertyValueSource- Overrides:
getValuesin classPropertySetDiff
-