The AttributeImpl type exposes the following members.

Methods

  NameDescription
Public methodClear
Clears the values in this AttributeImpl and resets it to its default value. If this implementation implements more than one Attribute interface it clears all.
Public methodClone
Shallow clone. Subclasses must override this if they need to clone any members deeply,
Public methodCopyTo
Copies the values from this Attribute into the passed-in target attribute. The target implementation must support all the Attributes this implementation supports.
Public methodEquals
All values used for computation of {@link #hashCode()} should be checked here for equality. see also {@link Object#equals(Object)}
(Overrides Object..::..Equals(Object).)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Subclasses must implement this method and should compute a hashCode similar to this:
            public int hashCode() {
            int code = startOffset;
            code = code * 31 + endOffset;
            return code;
            }
            
see also {@link #equals(Object)}
(Overrides Object..::..GetHashCode()()()().)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
The default implementation of this method accesses all declared fields of this object and prints the values in the following syntax:
            public String toString() {
            return "start=" + startOffset + ",end=" + endOffset;
            }
            
This method may be overridden by subclasses.
(Overrides Object..::..ToString()()()().)

See Also