Class RegionName

  • All Implemented Interfaces:
    java.lang.Comparable<RegionName>

    public class RegionName
    extends java.lang.Object
    implements java.lang.Comparable<RegionName>
    Represents an applications region, which may be any kind of string or default. This type is defined in order to provide a type safe API for defining regions.
    Since:
    5.11
    Author:
    Ulf Lilleengen
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • from

        public static RegionName from​(java.lang.String region)
      • defaultName

        public static RegionName defaultName()
      • isDefault

        public boolean isDefault()
      • value

        public java.lang.String value()
      • compareTo

        public int compareTo​(RegionName region)
        Specified by:
        compareTo in interface java.lang.Comparable<RegionName>