Class InstanceName

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

    public class InstanceName
    extends java.lang.Object
    implements java.lang.Comparable<InstanceName>
    Represents an applications instance name, which may be any kind of string or default. This type is defined in order to provide a type safe API for defining environments.
    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 InstanceName from​(java.lang.String name)
      • isDefault

        public boolean isDefault()
      • isTester

        public boolean isTester()
      • value

        public java.lang.String value()
      • compareTo

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