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