Record Class ComponentInfo
java.lang.Object
java.lang.Record
eu.cloudnetservice.driver.ComponentInfo
- Record Components:
environment- the environment of the current component.componentName- the name of the current component.nodeUniqueId- the node unique id which is associated with this component.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thecomponentNamerecord component.private final @NonNull DriverEnvironmentThe field for theenvironmentrecord component.The field for thenodeUniqueIdrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionComponentInfo(@NonNull DriverEnvironment environment, @NonNull String componentName, @NonNull String nodeUniqueId) Creates an instance of aComponentInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentNamerecord component.Returns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenodeUniqueIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
environment
The field for theenvironmentrecord component. -
componentName
The field for thecomponentNamerecord component. -
nodeUniqueId
The field for thenodeUniqueIdrecord component.
-
-
Constructor Details
-
ComponentInfo
public ComponentInfo(@NonNull @NonNull DriverEnvironment environment, @NonNull @NonNull String componentName, @NonNull @NonNull String nodeUniqueId) Creates an instance of aComponentInforecord class.- Parameters:
environment- the value for theenvironmentrecord componentcomponentName- the value for thecomponentNamerecord componentnodeUniqueId- the value for thenodeUniqueIdrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
environment
Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-
componentName
Returns the value of thecomponentNamerecord component.- Returns:
- the value of the
componentNamerecord component
-
nodeUniqueId
Returns the value of thenodeUniqueIdrecord component.- Returns:
- the value of the
nodeUniqueIdrecord component
-