Class Normal

java.lang.Object
com.sk89q.worldguard.util.Normal

public final class Normal extends Object
Normal names are strings that are considered equal after they have been normalized using Unicode's NFC form and made lowercase.
  • Method Details

    • getName

      public String getName()
      Get the original name before normalization.
      Returns:
      the original name before normalization
    • getNormal

      public String getNormal()
      Get the normalized name.
      Returns:
      the normal name
    • normalize

      public static String normalize(String name)
      Normalize a string according to the rules of this class.
      Parameters:
      name - an string
      Returns:
      the normalized string
    • normal

      public static Normal normal(String name)
      Create a new instance.
      Parameters:
      name - the name
      Returns:
      an instance
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Return the un-normalized name.
      Overrides:
      toString in class Object
      Returns:
      the un-normalized name