Class SchemaObjectWrapper
- java.lang.Object
-
- org.apache.directory.api.ldap.model.schema.SchemaObjectWrapper
-
public class SchemaObjectWrapper extends Object
A class containing a SchemaObject, used by the global registries. As the hash code method of the SchemaObject class is too complex, we had to define a simplest class for this purpose, where the hash code is computed using only the SchemaObject type and its OID.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description SchemaObjectWrapper(SchemaObject schemaObject)
Creates a new instance of SchemaObjectWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
SchemaObject
get()
int
hashCode()
Compute the hash code for this wrapper.String
toString()
-
-
-
Constructor Detail
-
SchemaObjectWrapper
public SchemaObjectWrapper(SchemaObject schemaObject)
Creates a new instance of SchemaObjectWrapper.- Parameters:
schemaObject
- The contained SchemaObject
-
-
Method Detail
-
hashCode
public int hashCode()
Compute the hash code for this wrapper. We only use the object type and its oid.
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classObject
- See Also:
Object.equals(Object)
-
get
public SchemaObject get()
- Returns:
- The interned SchemaObject
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-