java.lang
Class Character.Subset
java.lang.Object
|
+--java.lang.Character.Subset
- Direct Known Subclasses:
- Character.UnicodeBlock
- Enclosing class:
- Character
- public static class Character.Subset
- extends Object
Character.Subset
protected Character.Subset(String)
equals
public final boolean equals(Object)
- Description copied from class:
Object
- Determines if this object is "equal" to another object.
In general, objects should be instances of the same class
with the same guts to be considered equal. For example,
the code below only prints same value since
s
and t
are different strings though
they have the same value: "hello".
String s = new String("hello");
String t = new String("hello");
if (s.equals(t)) System.out.println("same value");
if (s == t) System.out.println("same string");
- Overrides:
equals
in class Object
- Following copied from class:
java.lang.Object
- Parameters:
is
- the other Object to which this one is compared- Returns:
- true if this Object is equal to
other
hashCode
public final int hashCode()
- Overrides:
hashCode
in class Object
toString
public final String toString()
- Overrides:
toString
in class Object