Package org.opends.server.types
Class AbstractAttribute
- java.lang.Object
-
- org.opends.server.types.AbstractAttribute
-
- All Implemented Interfaces:
Iterable<ByteString>,Attribute
- Direct Known Subclasses:
CollectiveVirtualAttribute,VirtualAttribute
@PublicAPI(stability=UNCOMMITTED, mayInstantiate=false, mayExtend=false, mayInvoke=true) public abstract class AbstractAttribute extends Object implements Attribute
An abstract base class for implementing new types ofAttribute.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opends.server.types.Attribute
Attribute.RemoveOnceSwitchingAttributes
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAttribute()Creates a new abstract attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsAll(Collection<?> values)Indicates whether this attribute contains all the values in the collection.booleanequals(Object o)Indicates whether the provided object is an attribute that is equal to this attribute.inthashCode()Retrieves the hash code for this attribute.booleanisEmpty()Returnstrueif this attribute contains no attribute values.booleanisReal()Indicates whether this is a real attribute (persisted) rather than a virtual attribute (dynamically computed).StringtoString()Retrieves a one-line string representation of this attribute.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opends.server.types.Attribute
approximatelyEqualTo, contains, getAttributeDescription, greaterThanOrEqualTo, isVirtual, iterator, lessThanOrEqualTo, matchesEqualityAssertion, matchesSubstring, size, toString
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
containsAll
public boolean containsAll(Collection<?> values)
Description copied from interface:AttributeIndicates whether this attribute contains all the values in the collection.- Specified by:
containsAllin interfaceAttribute- Parameters:
values- The set of values for which to make the determination.- Returns:
trueif this attribute contains all the values in the provided collection, orfalseif it does not contain at least one of them.
-
equals
public final boolean equals(Object o)
Description copied from interface:AttributeIndicates whether the provided object is an attribute that is equal to this attribute. It will be considered equal if the attribute type, set of values, and set of options are equal.
-
hashCode
public int hashCode()
Description copied from interface:AttributeRetrieves the hash code for this attribute. It will be calculated as the sum of the hash code for the attribute type and all values.
-
isEmpty
public boolean isEmpty()
Returnstrueif this attribute contains no attribute values.This implementation returns
trueif theAttribute.size()of this attribute is zero.
-
isReal
public boolean isReal()
Description copied from interface:AttributeIndicates whether this is a real attribute (persisted) rather than a virtual attribute (dynamically computed).
-
-