org.apache.directory.shared.ldap.schema
Class SchemaObjectWrapper
java.lang.Object
org.apache.directory.shared.ldap.schema.SchemaObjectWrapper
public class SchemaObjectWrapper
- extends java.lang.Object
A class containing a SchemaObject, used by the global registries. As the hash code
method of the SchemaObjetc 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.
- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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 java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
- See Also:
Object.equals(Object)
get
public SchemaObject get()
- Returns:
- The interned SchemaObject
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.