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 TypeMethodDescriptionboolean
Collection<Property<?>>
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.Collection<Property<?>>
Returns the opaque PropertyValue objects.boolean
boolean
boolean
isModified
(Property<?> prop) protected Map<Property<?>,
BoundValue> void
void
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
Methods inherited from class com.inductiveautomation.ignition.common.config.PropertySetDiff
compactChanges, get, getOrDefault, getOrElse, 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 java.lang.Iterable
forEach, iterator, spliterator
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
-
Constructor Details
-
BoundPropertySetDiff
public BoundPropertySetDiff() -
BoundPropertySetDiff
-
-
Method Details
-
modifiedBindings
-
isBound
- Specified by:
isBound
in interfaceBoundPropertySet
-
isModified
- Specified by:
isModified
in interfacePropertySetEdit
- Overrides:
isModified
in classPropertySetDiff
-
getModified
- Overrides:
getModified
in classPropertySetDiff
-
setBoundValue
- Specified by:
setBoundValue
in interfaceBoundPropertySet
-
remove
- Specified by:
remove
in interfaceMutablePropertyValueSource
- Overrides:
remove
in classPropertySetDiff
-
setRaw
- Overrides:
setRaw
in classPropertySetDiff
-
getBoundValue
- Specified by:
getBoundValue
in interfaceBoundPropertySet
-
getBoundProperties
- Specified by:
getBoundProperties
in interfaceBoundPropertySet
-
revert
Description copied from class:PropertySetDiff
Removes the property from the modified map, but unlike "remove", doesn't add it to the removed set.- Specified by:
revert
in interfacePropertySetEdit
- Overrides:
revert
in classPropertySetDiff
-
contains
- Specified by:
contains
in interfacePropertyValueSource
- Overrides:
contains
in classPropertySetDiff
- Returns:
- True if the source contains a value for prop.
-
getCount
public int getCount()Description copied from class:PropertySetDiff
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.- Specified by:
getCount
in interfaceCountable
- Overrides:
getCount
in classPropertySetDiff
-
getProperties
- Specified by:
getProperties
in interfacePropertyValueSource
- Overrides:
getProperties
in classPropertySetDiff
-
hasChanges
public boolean hasChanges()- Overrides:
hasChanges
in classPropertySetDiff
-
getValues
Description copied from interface:PropertyValueSource
Returns 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:
getValues
in interfaceBoundPropertySet
- Specified by:
getValues
in interfacePropertyValueSource
- Overrides:
getValues
in classPropertySetDiff
-