Record Class TagEventSourceConfig
java.lang.Object
java.lang.Record
com.inductiveautomation.eventstream.config.source.TagEventSourceConfig
public record TagEventSourceConfig(List<String> paths, EnumSet<TagEventSourceConfig.ChangeType> changeTypes, boolean skipInitialValues)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTagEventSourceConfig
(List<String> paths, EnumSet<TagEventSourceConfig.ChangeType> changeTypes, boolean skipInitialValues) Creates an instance of aTagEventSourceConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechangeTypes
record component.final boolean
Indicates whether some other object is "equal to" this one.static TagEventSourceConfig
fromJson
(com.inductiveautomation.ignition.common.gson.JsonObject config) final int
hashCode()
Returns a hash code value for this object.paths()
Returns the value of thepaths
record component.boolean
Returns the value of theskipInitialValues
record component.com.inductiveautomation.ignition.common.gson.JsonObject
toJson()
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TagEventSourceConfig
public TagEventSourceConfig(List<String> paths, EnumSet<TagEventSourceConfig.ChangeType> changeTypes, boolean skipInitialValues) Creates an instance of aTagEventSourceConfig
record class.- Parameters:
paths
- the value for thepaths
record componentchangeTypes
- the value for thechangeTypes
record componentskipInitialValues
- the value for theskipInitialValues
record component
-
-
Method Details
-
toJson
public com.inductiveautomation.ignition.common.gson.JsonObject toJson() -
fromJson
public static TagEventSourceConfig fromJson(@Nullable com.inductiveautomation.ignition.common.gson.JsonObject config) -
getValidTagPaths
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
paths
Returns the value of thepaths
record component.- Returns:
- the value of the
paths
record component
-
changeTypes
Returns the value of thechangeTypes
record component.- Returns:
- the value of the
changeTypes
record component
-
skipInitialValues
public boolean skipInitialValues()Returns the value of theskipInitialValues
record component.- Returns:
- the value of the
skipInitialValues
record component
-