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, EditDiff<PropertySet>, PropertySet, PropertySetEdit, PropertyValueSource, Serializable, Iterable<PropertyValue>
- See Also:
-
Field Summary
Fields inherited from interface PropertySet
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanCollection<Property<?>> @Nullable 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.Collection<Property<?>> Returns the opaque PropertyValue objects.booleanReturns whether the diff has been modified.inthashCode()booleanbooleanisModified(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 PropertySetDiff
compactChanges, get, getOrDefault, getOrElse, getRaw, getRemoved, isExtended, isInherited, isRemoved, iterator, set, set, toStringMethods inherited from interface BoundPropertySet
extend, getBoundOrDefault, newDefaultInstance, newExtensionMethods inherited from interface Iterable
forEach, iterator, spliteratorMethods inherited from interface MutablePropertyValueSource
merge, set, setMethods inherited from interface PropertySet
getExtension, isExtended, isInheritedMethods inherited from interface 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()Description copied from interface:EditDiffReturns whether the diff has been modified.- Specified by:
hasChangesin interfaceEditDiff<PropertySet>- 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
-
equals
- Overrides:
equalsin classPropertySetDiff
-
hashCode
public int hashCode()- Overrides:
hashCodein classPropertySetDiff
-