Package com.yahoo.config.provision
Class InstanceName
- java.lang.Object
-
- com.yahoo.config.provision.InstanceName
-
- All Implemented Interfaces:
Comparable<InstanceName>
public class InstanceName extends Object implements 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(InstanceName instance)
static InstanceName
defaultName()
boolean
equals(Object obj)
static InstanceName
from(String name)
int
hashCode()
boolean
isDefault()
boolean
isTester()
String
toString()
String
value()
-
-
-
Method Detail
-
from
public static InstanceName from(String name)
-
defaultName
public static InstanceName defaultName()
-
isDefault
public boolean isDefault()
-
isTester
public boolean isTester()
-
value
public String value()
-
compareTo
public int compareTo(InstanceName instance)
- Specified by:
compareTo
in interfaceComparable<InstanceName>
-
-