Package org.opends.server.tools
Record Class BackendToolUtils.BackendInfo
java.lang.Object
java.lang.Record
org.opends.server.tools.BackendToolUtils.BackendInfo
- Record Components:
localBackend
- the local backendconfig
- the backend configuration
- Enclosing class:
BackendToolUtils
public static record BackendToolUtils.BackendInfo(LocalBackend<?> localBackend, BackendCfg config)
extends Record
Contains a backend object with its configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionBackendInfo
(LocalBackend<?> localBackend, BackendCfg config) Creates an instance of aBackendInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionconfig()
Returns the value of theconfig
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.LocalBackend
<?> Returns the value of thelocalBackend
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
BackendInfo
Creates an instance of aBackendInfo
record class.- Parameters:
localBackend
- the value for thelocalBackend
record componentconfig
- the value for theconfig
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
localBackend
Returns the value of thelocalBackend
record component.- Returns:
- the value of the
localBackend
record component
-
config
Returns the value of theconfig
record component.- Returns:
- the value of the
config
record component
-