javax.naming.directory
Class BasicAttributes

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.naming.directory.BasicAttributes
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable , Attributes sample code for javax.naming.directory.Attributes definition code for javax.naming.directory.Attributes

public class BasicAttributes
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements Attributes sample code for javax.naming.directory.Attributes definition code for javax.naming.directory.Attributes

This class provides a basic implementation of the Attributes interface.

BasicAttributes is either case-sensitive or case-insensitive (case-ignore). This property is determined at the time the BasicAttributes constructor is called. In a case-insensitive BasicAttributes, the case of its attribute identifiers is ignored when searching for an attribute, or adding attributes. In a case-sensitive BasicAttributes, the case is significant.

When the BasicAttributes class needs to create an Attribute, it uses BasicAttribute. There is no other dependency on BasicAttribute.

Note that updates to BasicAttributes (such as adding or removing an attribute) does not affect the corresponding representation in the directory. Updates to the directory can only be effected using operations in the DirContext interface.

A BasicAttributes instance is not synchronized against concurrent multithreaded access. Multiple threads trying to access and modify a single BasicAttributes instance should lock the object.

Since:
1.3
See Also:
DirContext.getAttributes(javax.naming.Name) sample code for javax.naming.directory.DirContext.getAttributes(javax.naming.Name) definition code for javax.naming.directory.DirContext.getAttributes(javax.naming.Name) , DirContext.modifyAttributes(javax.naming.Name, int, javax.naming.directory.Attributes) sample code for javax.naming.directory.DirContext.modifyAttributes(javax.naming.Name, int, javax.naming.directory.Attributes) definition code for javax.naming.directory.DirContext.modifyAttributes(javax.naming.Name, int, javax.naming.directory.Attributes) , DirContext.bind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes) sample code for javax.naming.directory.DirContext.bind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes) definition code for javax.naming.directory.DirContext.bind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes) , DirContext.rebind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes) sample code for javax.naming.directory.DirContext.rebind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes) definition code for javax.naming.directory.DirContext.rebind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes) , DirContext.createSubcontext(javax.naming.Name, javax.naming.directory.Attributes) sample code for javax.naming.directory.DirContext.createSubcontext(javax.naming.Name, javax.naming.directory.Attributes) definition code for javax.naming.directory.DirContext.createSubcontext(javax.naming.Name, javax.naming.directory.Attributes) , DirContext.search(javax.naming.Name, javax.naming.directory.Attributes, java.lang.String[]) sample code for javax.naming.directory.DirContext.search(javax.naming.Name, javax.naming.directory.Attributes, java.lang.String[]) definition code for javax.naming.directory.DirContext.search(javax.naming.Name, javax.naming.directory.Attributes, java.lang.String[]) , Serialized Form

Constructor Summary
BasicAttributes sample code for javax.naming.directory.BasicAttributes.BasicAttributes() definition code for javax.naming.directory.BasicAttributes.BasicAttributes() ()
          Constructs a new instance of Attributes.
BasicAttributes sample code for javax.naming.directory.BasicAttributes.BasicAttributes(boolean) definition code for javax.naming.directory.BasicAttributes.BasicAttributes(boolean) (boolean ignoreCase)
          Constructs a new instance of Attributes.
BasicAttributes sample code for javax.naming.directory.BasicAttributes.BasicAttributes(java.lang.String, java.lang.Object) definition code for javax.naming.directory.BasicAttributes.BasicAttributes(java.lang.String, java.lang.Object) (String sample code for java.lang.String definition code for java.lang.String  attrID, Object sample code for java.lang.Object definition code for java.lang.Object  val)
          Constructs a new instance of Attributes with one attribute.
BasicAttributes sample code for javax.naming.directory.BasicAttributes.BasicAttributes(java.lang.String, java.lang.Object, boolean) definition code for javax.naming.directory.BasicAttributes.BasicAttributes(java.lang.String, java.lang.Object, boolean) (String sample code for java.lang.String definition code for java.lang.String  attrID, Object sample code for java.lang.Object definition code for java.lang.Object  val, boolean ignoreCase)
          Constructs a new instance of Attributes with one attribute.
 
Method Summary
 Object sample code for java.lang.Object definition code for java.lang.Object clone sample code for javax.naming.directory.BasicAttributes.clone() definition code for javax.naming.directory.BasicAttributes.clone() ()
          Creates and returns a copy of this object.
 boolean equals sample code for javax.naming.directory.BasicAttributes.equals(java.lang.Object) definition code for javax.naming.directory.BasicAttributes.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  obj)
          Determines whether this BasicAttributes is equal to another Attributes Two Attributes are equal if they are both instances of Attributes, treat the case of attribute IDs the same way, and contain the same attributes.
 Attribute sample code for javax.naming.directory.Attribute definition code for javax.naming.directory.Attribute get sample code for javax.naming.directory.BasicAttributes.get(java.lang.String) definition code for javax.naming.directory.BasicAttributes.get(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  attrID)
          Retrieves the attribute with the given attribute id from the attribute set.
 NamingEnumeration sample code for javax.naming.NamingEnumeration definition code for javax.naming.NamingEnumeration <Attribute sample code for javax.naming.directory.Attribute definition code for javax.naming.directory.Attribute > getAll sample code for javax.naming.directory.BasicAttributes.getAll() definition code for javax.naming.directory.BasicAttributes.getAll() ()
          Retrieves an enumeration of the attributes in the attribute set.
 NamingEnumeration sample code for javax.naming.NamingEnumeration definition code for javax.naming.NamingEnumeration <String sample code for java.lang.String definition code for java.lang.String > getIDs sample code for javax.naming.directory.BasicAttributes.getIDs() definition code for javax.naming.directory.BasicAttributes.getIDs() ()
          Retrieves an enumeration of the ids of the attributes in the attribute set.
 int hashCode sample code for javax.naming.directory.BasicAttributes.hashCode() definition code for javax.naming.directory.BasicAttributes.hashCode() ()
          Calculates the hash code of this BasicAttributes.
 boolean isCaseIgnored sample code for javax.naming.directory.BasicAttributes.isCaseIgnored() definition code for javax.naming.directory.BasicAttributes.isCaseIgnored() ()
          Determines whether the attribute set ignores the case of attribute identifiers when retrieving or adding attributes.
 Attribute sample code for javax.naming.directory.Attribute definition code for javax.naming.directory.Attribute put sample code for javax.naming.directory.BasicAttributes.put(javax.naming.directory.Attribute) definition code for javax.naming.directory.BasicAttributes.put(javax.naming.directory.Attribute) (Attribute sample code for javax.naming.directory.Attribute definition code for javax.naming.directory.Attribute  attr)
          Adds a new attribute to the attribute set.
 Attribute sample code for javax.naming.directory.Attribute definition code for javax.naming.directory.Attribute put sample code for javax.naming.directory.BasicAttributes.put(java.lang.String, java.lang.Object) definition code for javax.naming.directory.BasicAttributes.put(java.lang.String, java.lang.Object) (String sample code for java.lang.String definition code for java.lang.String  attrID, Object sample code for java.lang.Object definition code for java.lang.Object  val)
          Adds a new attribute to the attribute set.
 Attribute sample code for javax.naming.directory.Attribute definition code for javax.naming.directory.Attribute remove sample code for javax.naming.directory.BasicAttributes.remove(java.lang.String) definition code for javax.naming.directory.BasicAttributes.remove(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  attrID)
          Removes the attribute with the attribute id 'attrID' from the attribute set.
 int size sample code for javax.naming.directory.BasicAttributes.size() definition code for javax.naming.directory.BasicAttributes.size() ()
          Retrieves the number of attributes in the attribute set.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for javax.naming.directory.BasicAttributes.toString() definition code for javax.naming.directory.BasicAttributes.toString() ()
          Generates the string representation of this attribute set.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

BasicAttributes sample code for javax.naming.directory.BasicAttributes() definition code for javax.naming.directory.BasicAttributes()

public BasicAttributes()
Constructs a new instance of Attributes. The character case of attribute identifiers is significant when subsequently retrieving or adding attributes.


BasicAttributes sample code for javax.naming.directory.BasicAttributes(boolean) definition code for javax.naming.directory.BasicAttributes(boolean)

public BasicAttributes(boolean ignoreCase)
Constructs a new instance of Attributes. If ignoreCase is true, the character case of attribute identifiers is ignored; otherwise the case is significant.

Parameters:
ignoreCase - true means this attribute set will ignore the case of its attribute identifiers when retrieving or adding attributes; false means case is respected.

BasicAttributes sample code for javax.naming.directory.BasicAttributes(java.lang.String, java.lang.Object) definition code for javax.naming.directory.BasicAttributes(java.lang.String, java.lang.Object)

public BasicAttributes(String sample code for java.lang.String definition code for java.lang.String  attrID,
                       Object sample code for java.lang.Object definition code for java.lang.Object  val)
Constructs a new instance of Attributes with one attribute. The attribute specified by attrID and val are added to the newly created attribute. The character case of attribute identifiers is significant when subsequently retrieving or adding attributes.

Parameters:
attrID - non-null The id of the attribute to add.
val - The value of the attribute to add. If null, a null value is added to the attribute.

BasicAttributes sample code for javax.naming.directory.BasicAttributes(java.lang.String, java.lang.Object, boolean) definition code for javax.naming.directory.BasicAttributes(java.lang.String, java.lang.Object, boolean)

public BasicAttributes(String sample code for java.lang.String definition code for java.lang.String  attrID,
                       Object sample code for java.lang.Object definition code for java.lang.Object  val,
                       boolean ignoreCase)
Constructs a new instance of Attributes with one attribute. The attribute specified by attrID and val are added to the newly created attribute. If ignoreCase is true, the character case of attribute identifiers is ignored; otherwise the case is significant.

Parameters:
attrID - non-null The id of the attribute to add. If this attribute set ignores the character case of its attribute ids, the case of attrID is ignored.
val - The value of the attribute to add. If null, a null value is added to the attribute.
ignoreCase - true means this attribute set will ignore the case of its attribute identifiers when retrieving or adding attributes; false means case is respected.
Method Detail

clone sample code for javax.naming.directory.BasicAttributes.clone() definition code for javax.naming.directory.BasicAttributes.clone()

public Object sample code for java.lang.Object definition code for java.lang.Object  clone()
Description copied from class: Object sample code for java.lang.Object.clone() definition code for java.lang.Object.clone()
Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:
 x.clone() != x
will be true, and that the expression:
 x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
 x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

The method clone for class Object performs a specific cloning operation. First, if the class of this object does not implement the interface Cloneable, then a CloneNotSupportedException is thrown. Note that all arrays are considered to implement the interface Cloneable. Otherwise, this method creates a new instance of the class of this object and initializes all its fields with exactly the contents of the corresponding fields of this object, as if by assignment; the contents of the fields are not themselves cloned. Thus, this method performs a "shallow copy" of this object, not a "deep copy" operation.

The class Object does not itself implement the interface Cloneable, so calling the clone method on an object whose class is Object will result in throwing an exception at run time.

Specified by:
clone sample code for javax.naming.directory.Attributes.clone() definition code for javax.naming.directory.Attributes.clone() in interface Attributes sample code for javax.naming.directory.Attributes definition code for javax.naming.directory.Attributes
Overrides:
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a clone of this instance.
See Also:
Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable

isCaseIgnored sample code for javax.naming.directory.BasicAttributes.isCaseIgnored() definition code for javax.naming.directory.BasicAttributes.isCaseIgnored()

public boolean isCaseIgnored()
Description copied from interface: Attributes sample code for javax.naming.directory.Attributes.isCaseIgnored() definition code for javax.naming.directory.Attributes.isCaseIgnored()
Determines whether the attribute set ignores the case of attribute identifiers when retrieving or adding attributes.

Specified by:
isCaseIgnored sample code for javax.naming.directory.Attributes.isCaseIgnored() definition code for javax.naming.directory.Attributes.isCaseIgnored() in interface Attributes sample code for javax.naming.directory.Attributes definition code for javax.naming.directory.Attributes
Returns:
true if case is ignored; false otherwise.

size sample code for javax.naming.directory.BasicAttributes.size() definition code for javax.naming.directory.BasicAttributes.size()

public int size()
Description copied from interface: Attributes sample code for javax.naming.directory.Attributes.size() definition code for javax.naming.directory.Attributes.size()
Retrieves the number of attributes in the attribute set.

Specified by:
size sample code for javax.naming.directory.Attributes.size() definition code for javax.naming.directory.Attributes.size() in interface Attributes sample code for javax.naming.directory.Attributes definition code for javax.naming.directory.Attributes
Returns:
The nonnegative number of attributes in this attribute set.

get sample code for javax.naming.directory.BasicAttributes.get(java.lang.String) definition code for javax.naming.directory.BasicAttributes.get(java.lang.String)

public Attribute sample code for javax.naming.directory.Attribute definition code for javax.naming.directory.Attribute  get(String sample code for java.lang.String definition code for java.lang.String  attrID)
Description copied from interface: Attributes sample code for javax.naming.directory.Attributes.get(java.lang.String) definition code for javax.naming.directory.Attributes.get(java.lang.String)
Retrieves the attribute with the given attribute id from the attribute set.

Specified by:
get sample code for javax.naming.directory.Attributes.get(java.lang.String) definition code for javax.naming.directory.Attributes.get(java.lang.String) in interface Attributes sample code for javax.naming.directory.Attributes definition code for javax.naming.directory.Attributes
Parameters:
attrID - The non-null id of the attribute to retrieve. If this attribute set ignores the character case of its attribute ids, the case of attrID is ignored.
Returns:
The attribute identified by attrID; null if not found.
See Also:
Attributes.put(java.lang.String, java.lang.Object) sample code for javax.naming.directory.Attributes.put(java.lang.String, java.lang.Object) definition code for javax.naming.directory.Attributes.put(java.lang.String, java.lang.Object) , Attributes.remove(java.lang.String) sample code for javax.naming.directory.Attributes.remove(java.lang.String) definition code for javax.naming.directory.Attributes.remove(java.lang.String)

getAll sample code for javax.naming.directory.BasicAttributes.getAll() definition code for javax.naming.directory.BasicAttributes.getAll()

public NamingEnumeration sample code for javax.naming.NamingEnumeration definition code for javax.naming.NamingEnumeration <Attribute sample code for javax.naming.directory.Attribute definition code for javax.naming.directory.Attribute > getAll()
Description copied from interface: Attributes sample code for javax.naming.directory.Attributes.getAll() definition code for javax.naming.directory.Attributes.getAll()
Retrieves an enumeration of the attributes in the attribute set. The effects of updates to this attribute set on this enumeration are undefined.

Specified by:
getAll sample code for javax.naming.directory.Attributes.getAll() definition code for javax.naming.directory.Attributes.getAll() in interface Attributes sample code for javax.naming.directory.Attributes definition code for javax.naming.directory.Attributes
Returns:
A non-null enumeration of the attributes in this attribute set. Each element of the enumeration is of class Attribute. If attribute set has zero attributes, an empty enumeration is returned.

getIDs sample code for javax.naming.directory.BasicAttributes.getIDs() definition code for javax.naming.directory.BasicAttributes.getIDs()

public NamingEnumeration sample code for javax.naming.NamingEnumeration definition code for javax.naming.NamingEnumeration <String sample code for java.lang.String definition code for java.lang.String > getIDs()
Description copied from interface: Attributes sample code for javax.naming.directory.Attributes.getIDs() definition code for javax.naming.directory.Attributes.getIDs()
Retrieves an enumeration of the ids of the attributes in the attribute set. The effects of updates to this attribute set on this enumeration are undefined.

Specified by:
getIDs sample code for javax.naming.directory.Attributes.getIDs() definition code for javax.naming.directory.Attributes.getIDs() in interface Attributes sample code for javax.naming.directory.Attributes definition code for javax.naming.directory.Attributes
Returns:
A non-null enumeration of the attributes' ids in this attribute set. Each element of the enumeration is of class String. If attribute set has zero attributes, an empty enumeration is returned.

put sample code for javax.naming.directory.BasicAttributes.put(java.lang.String, java.lang.Object) definition code for javax.naming.directory.BasicAttributes.put(java.lang.String, java.lang.Object)

public Attribute sample code for javax.naming.directory.Attribute definition code for javax.naming.directory.Attribute  put(String sample code for java.lang.String definition code for java.lang.String  attrID,
                     Object sample code for java.lang.Object definition code for java.lang.Object  val)
Description copied from interface: Attributes sample code for javax.naming.directory.Attributes.put(java.lang.String, java.lang.Object) definition code for javax.naming.directory.Attributes.put(java.lang.String, java.lang.Object)
Adds a new attribute to the attribute set.

Specified by:
put sample code for javax.naming.directory.Attributes.put(java.lang.String, java.lang.Object) definition code for javax.naming.directory.Attributes.put(java.lang.String, java.lang.Object) in interface Attributes sample code for javax.naming.directory.Attributes definition code for javax.naming.directory.Attributes
Parameters:
attrID - non-null The id of the attribute to add. If the attribute set ignores the character case of its attribute ids, the case of attrID is ignored.
val - The possibly null value of the attribute to add. If null, the attribute does not have any values.
Returns:
The Attribute with attrID that was previous in this attribute set; null if no such attribute existed.
See Also:
Attributes.remove(java.lang.String) sample code for javax.naming.directory.Attributes.remove(java.lang.String) definition code for javax.naming.directory.Attributes.remove(java.lang.String)

put sample code for javax.naming.directory.BasicAttributes.put(javax.naming.directory.Attribute) definition code for javax.naming.directory.BasicAttributes.put(javax.naming.directory.Attribute)

public Attribute sample code for javax.naming.directory.Attribute definition code for javax.naming.directory.Attribute  put(Attribute sample code for javax.naming.directory.Attribute definition code for javax.naming.directory.Attribute  attr)
Description copied from interface: Attributes sample code for javax.naming.directory.Attributes.put(javax.naming.directory.Attribute) definition code for javax.naming.directory.Attributes.put(javax.naming.directory.Attribute)
Adds a new attribute to the attribute set.

Specified by:
put sample code for javax.naming.directory.Attributes.put(javax.naming.directory.Attribute) definition code for javax.naming.directory.Attributes.put(javax.naming.directory.Attribute) in interface Attributes sample code for javax.naming.directory.Attributes definition code for javax.naming.directory.Attributes
Parameters:
attr - The non-null attribute to add. If the attribute set ignores the character case of its attribute ids, the case of attr's identifier is ignored.
Returns:
The Attribute with the same ID as attr that was previous in this attribute set; null if no such attribute existed.
See Also:
Attributes.remove(java.lang.String) sample code for javax.naming.directory.Attributes.remove(java.lang.String) definition code for javax.naming.directory.Attributes.remove(java.lang.String)

remove sample code for javax.naming.directory.BasicAttributes.remove(java.lang.String) definition code for javax.naming.directory.BasicAttributes.remove(java.lang.String)

public Attribute sample code for javax.naming.directory.Attribute definition code for javax.naming.directory.Attribute  remove(String sample code for java.lang.String definition code for java.lang.String  attrID)
Description copied from interface: Attributes sample code for javax.naming.directory.Attributes.remove(java.lang.String) definition code for javax.naming.directory.Attributes.remove(java.lang.String)
Removes the attribute with the attribute id 'attrID' from the attribute set. If the attribute does not exist, ignore.

Specified by:
remove sample code for javax.naming.directory.Attributes.remove(java.lang.String) definition code for javax.naming.directory.Attributes.remove(java.lang.String) in interface Attributes sample code for javax.naming.directory.Attributes definition code for javax.naming.directory.Attributes
Parameters:
attrID - The non-null id of the attribute to remove. If the attribute set ignores the character case of its attribute ids, the case of attrID is ignored.
Returns:
The Attribute with the same ID as attrID that was previous in the attribute set; null if no such attribute existed.

toString sample code for javax.naming.directory.BasicAttributes.toString() definition code for javax.naming.directory.BasicAttributes.toString()

public String sample code for java.lang.String definition code for java.lang.String  toString()
Generates the string representation of this attribute set. The string consists of each attribute identifier and the contents of each attribute. The contents of this string is useful for debugging and is not meant to be interpreted programmatically.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
A non-null string listing the contents of this attribute set.

equals sample code for javax.naming.directory.BasicAttributes.equals(java.lang.Object) definition code for javax.naming.directory.BasicAttributes.equals(java.lang.Object)

public boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  obj)
Determines whether this BasicAttributes is equal to another Attributes Two Attributes are equal if they are both instances of Attributes, treat the case of attribute IDs the same way, and contain the same attributes. Each Attribute in this BasicAttributes is checked for equality using Object.equals(), which may have be overridden by implementations of Attribute). If a subclass overrides equals(), it should override hashCode() as well so that two Attributes instances that are equal have the same hash code.

Overrides:
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) in class Object sample code for java.lang.Object definition code for java.lang.Object
Parameters:
obj - the possibly null object to compare against.
Returns:
true If obj is equal to this BasicAttributes.
See Also:
hashCode() sample code for javax.naming.directory.BasicAttributes.hashCode() definition code for javax.naming.directory.BasicAttributes.hashCode()

hashCode sample code for javax.naming.directory.BasicAttributes.hashCode() definition code for javax.naming.directory.BasicAttributes.hashCode()

public int hashCode()
Calculates the hash code of this BasicAttributes.

The hash code is computed by adding the hash code of the attributes of this object. If this BasicAttributes ignores case of its attribute IDs, one is added to the hash code. If a subclass overrides hashCode(), it should override equals() as well so that two Attributes instances that are equal have the same hash code.

Overrides:
hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
an int representing the hash code of this BasicAttributes instance.
See Also:
equals(java.lang.Object) sample code for javax.naming.directory.BasicAttributes.equals(java.lang.Object) definition code for javax.naming.directory.BasicAttributes.equals(java.lang.Object)