org.apache.directory.api.ldap.model.schema
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
SchemaObjectWrapper
public SchemaObjectWrapper(SchemaObject schemaObject)
- Creates a new instance of SchemaObjectWrapper.
- Parameters:
schemaObject - The contained SchemaObject
hashCode
public int hashCode()
- Compute the hash code for this wrapper. We only use the object type
and its oid.
- Overrides:
hashCode in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
- See Also:
Object.equals(Object)
get
public SchemaObject get()
- Returns:
- The interned SchemaObject
toString
public String toString()
- Overrides:
toString in class Object
- See Also:
Object.toString()
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.