Java™ Platform
Standard Ed. 8
compact1, compact2, compact3
java.text
Class AttributedCharacterIterator.Attribute
-
-
Constructor Summary
Constructors
| Modifier |
Constructor |
Description |
protected |
Attribute(String name) |
Constructs an Attribute with the given name.
|
-
Method Summary
All Methods Instance Methods Concrete Methods
| Modifier and Type |
Method |
Description |
boolean |
equals(Object obj) |
Compares two objects for equality.
|
protected String |
getName() |
Returns the name of the attribute.
|
int |
hashCode() |
Returns a hash code value for the object.
|
protected Object |
readResolve() |
Resolves instances being deserialized to the predefined constants.
|
String |
toString() |
Returns a string representation of the object.
|
-
-
Method Detail
-
equals
public final boolean equals(Object obj)
Compares two objects for equality. This version only returns true
for x.equals(y) if x and y refer
to the same object, and guarantees this for all subclasses.
- Overrides:
equals in class Object
- Parameters:
obj - the reference object with which to compare.
- Returns:
true if this object is the same as the obj
argument; false otherwise.
- See Also:
Object.hashCode(),
HashMap
Java™ Platform
Standard Ed. 8
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.