Record Class Environment
java.lang.Object
java.lang.Record
uk.ac.diamond.daq.bluesky.api.model.Environment
-
Constructor Summary
ConstructorsConstructorDescriptionEnvironment(String id, String error, boolean initialized) Creates an instance of aEnvironmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanReturns the value of theinitializedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Environment
Creates an instance of aEnvironmentrecord class.- Parameters:
id- the value for theidrecord componenterror- the value for theerrorrecord componentinitialized- the value for theinitializedrecord 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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
initialized
public boolean initialized()Returns the value of theinitializedrecord component.- Returns:
- the value of the
initializedrecord component
-