Record Class EventStreamDescription
java.lang.Object
java.lang.Record
com.inductiveautomation.eventstream.EventStreamDescription
public record EventStreamDescription(String project, String path, boolean enabled, EventStreamState state, String sourceType)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEventStreamDescription
(String project, String path, boolean enabled, EventStreamState state, String sourceType) Creates an instance of aEventStreamDescription
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
enabled()
Returns the value of theenabled
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.path()
Returns the value of thepath
record component.project()
Returns the value of theproject
record component.Returns the value of thesourceType
record component.state()
Returns the value of thestate
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
EventStreamDescription
public EventStreamDescription(String project, String path, boolean enabled, EventStreamState state, String sourceType) Creates an instance of aEventStreamDescription
record class.- Parameters:
project
- the value for theproject
record componentpath
- the value for thepath
record componentenabled
- the value for theenabled
record componentstate
- the value for thestate
record componentsourceType
- the value for thesourceType
record component
-
-
Method Details
-
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 '=='. -
project
Returns the value of theproject
record component.- Returns:
- the value of the
project
record component
-
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-
enabled
public boolean enabled()Returns the value of theenabled
record component.- Returns:
- the value of the
enabled
record component
-
state
Returns the value of thestate
record component.- Returns:
- the value of the
state
record component
-
sourceType
Returns the value of thesourceType
record component.- Returns:
- the value of the
sourceType
record component
-