The AttributeImpl type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| AttributeImpl | Initializes a new instance of the AttributeImpl class |
Methods
| Name | Description | |
|---|---|---|
| Clear | 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.
| |
| Clone | Shallow clone. Subclasses must override this if they
need to clone any members deeply,
| |
| CopyTo | Copies the values from this Attribute into the passed-in
target attribute. The target implementation must support all the
Attributes this implementation supports.
| |
| Equals | All values used for computation of {@link #hashCode()}
should be checked here for equality.
see also {@link Object#equals(Object)}
(Overrides Object..::..Equals(Object).) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Subclasses must implement this method and should compute
a hashCode similar to this:
(Overrides Object..::..GetHashCode()()()().)
public int hashCode() {
int code = startOffset;
code = code * 31 + endOffset;
return code;
}
see also {@link #equals(Object)}
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | The default implementation of this method accesses all declared
fields of this object and prints the values in the following syntax:
(Overrides Object..::..ToString()()()().)
public String toString() {
return "start=" + startOffset + ",end=" + endOffset;
}
This method may be overridden by subclasses.
|