Package io.datarouter.storage.servertype
Class SingleServerType
java.lang.Object
io.datarouter.storage.servertype.SingleServerType
- All Implemented Interfaces:
ServerType,io.datarouter.util.enums.Displayable,io.datarouter.util.enums.DisplayablePersistentString,io.datarouter.util.enums.PersistentString,Comparable<ServerType>
public class SingleServerType extends Object implements ServerType
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SingleServerType(String persistentString, boolean isProduction) -
Method Summary
Modifier and Type Method Description intcompareTo(ServerType other)booleanequals(Object obj)StringgetDisplay()StringgetPersistentString()inthashCode()booleanisProduction()
-
Constructor Details
-
Method Details
-
getPersistentString
- Specified by:
getPersistentStringin interfaceio.datarouter.util.enums.PersistentString- Specified by:
getPersistentStringin interfaceServerType
-
isProduction
public boolean isProduction()- Specified by:
isProductionin interfaceServerType
-
getDisplay
- Specified by:
getDisplayin interfaceio.datarouter.util.enums.Displayable- Specified by:
getDisplayin interfaceServerType
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<ServerType>
-