Package org.ldaptive.dn
Class NameValue
java.lang.Object
org.ldaptive.dn.NameValue
Container for a RDN name value pair.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringAttribute name.private final byte[]Attribute value.private static final inthash code seed. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
attributeName
Attribute name. -
attributeValue
private final byte[] attributeValueAttribute value.
-
-
Constructor Details
-
NameValue
Creates a new name value.- Parameters:
name- of the attributevalue- of the attribute
-
NameValue
Creates a new name value.- Parameters:
name- of the attributevalue- of the attribute
-
-
Method Details
-
getName
Returns the attribute name.- Returns:
- attribute name
-
getBinaryValue
public byte[] getBinaryValue() -
getStringValue
-
getValue
-
hasName
Returns whether the attribute name matches the supplied name.- Parameters:
name- to match- Returns:
- whether name matches the attribute name
-
format
Returns a string representation of this name value, of the form 'name=value'.- Returns:
- string form of the name value pair
-
equals
-
hashCode
public int hashCode() -
toString
-