Package com.yahoo.config.provision
Class RegionName
- java.lang.Object
-
- com.yahoo.config.provision.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(RegionName region)
static RegionName
defaultName()
boolean
equals(java.lang.Object obj)
static RegionName
from(java.lang.String region)
int
hashCode()
boolean
isDefault()
java.lang.String
toString()
java.lang.String
value()
-
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.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 interfacejava.lang.Comparable<RegionName>
-
-