Package org.opends.server.core
Record Class BackendConfigManager.MatchingBackend
java.lang.Object
java.lang.Record
org.opends.server.core.BackendConfigManager.MatchingBackend
- Record Components:
namingContext
- the matched backend's base DN, may benull
if no backend matched the entry DNbackend
- the matched backend, may benull
if no backend matched the entry DN
- Enclosing class:
BackendConfigManager
public static record BackendConfigManager.MatchingBackend(Dn namingContext, Backend<?> backend)
extends Record
Associates a backend with the base DN that matched the requested entry DN.
-
Constructor Summary
ConstructorsConstructorDescriptionMatchingBackend
(Dn namingContext, Backend<?> backend) Creates an instance of aMatchingBackend
record class. -
Method Summary
Modifier and TypeMethodDescriptionBackend
<?> backend()
Returns the value of thebackend
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 backend if it is a local backend, ornull
otherwise.Returns the value of thenamingContext
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
MatchingBackend
Creates an instance of aMatchingBackend
record class.- Parameters:
namingContext
- the value for thenamingContext
record componentbackend
- the value for thebackend
record component
-
-
Method Details
-
localBackend
Returns the backend if it is a local backend, ornull
otherwise.- Returns:
- the backend if it is a local backend, or
null
otherwise
-
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)
. -
namingContext
Returns the value of thenamingContext
record component.- Returns:
- the value of the
namingContext
record component
-
backend
Returns the value of thebackend
record component.- Returns:
- the value of the
backend
record component
-