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 aEventStreamDescriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.project()Returns the value of theprojectrecord component.Returns the value of thesourceTyperecord component.state()Returns the value of thestaterecord component.final StringtoString()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 aEventStreamDescriptionrecord class.- Parameters:
project- the value for theprojectrecord componentpath- the value for thepathrecord componentenabled- the value for theenabledrecord componentstate- the value for thestaterecord componentsourceType- the value for thesourceTyperecord 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 theprojectrecord component.- Returns:
- the value of the
projectrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
sourceType
Returns the value of thesourceTyperecord component.- Returns:
- the value of the
sourceTyperecord component
-