This class holds a small number of attributes in an array.
This class holds a small number of attributes in an array. The storage format is key, value, key, value, etc. The size of the set is the length of the array divided by two. By default, this is the class that will be used to store attributes when held in the compact sharable form.
See also:
Constructors
public StyleContext.SmallAttributeSet
(AttributeSet attrs)
public StyleContext.SmallAttributeSet
(Object attributes)
Compares this object to the specifed object. The result is true if the object is an equivalent set of attributes.
Returns:true if the objects are equal;
false otherwise.
Parameters: - obj - the object to compare with.
If not overriden, the resolving parent defaults to
the parent element.
If not overriden, the resolving parent defaults to the parent element.
Returns:
the attributes from the parent
See Also:AttributeSet.getResolveParent(),
public int
hashCode
()
Returns a hashcode for this set of attributes.
Returns a hashcode for this set of attributes.
Returns:
a hashcode value for this set of attributes.
Checks whether a given attribute is defined.
Returns:
true if the attribute is defined
Parameters: - key - the attribute key
See Also:AttributeSet.isDefined(java.lang.Object),