Package 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
  • Constructor Details

    • Subset

      protected Subset​(String name)
      Constructs a new Subset.
  • Method Details

    • equals

      public final boolean equals​(Object object)
      Compares this character subset for identity with the specified object.
      Overrides:
      equals in class Object
      Parameters:
      object - the object to compare this instance with.
      Returns:
      true if the specified object is equal to this Object; false otherwise.
      See Also:
      Object.hashCode()
    • hashCode

      public final int hashCode()
      Returns this subset's hash code, which is the hash code computed by Object.hashCode().
      Overrides:
      hashCode in class Object
      Returns:
      this object's hash code.
      See Also:
      Object.equals(java.lang.Object)
    • toString

      public final String toString()
      Returns this subset's name.
      Overrides:
      toString in class Object
      Returns:
      a printable representation of this object.