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, java.lang.Comparable<ServerType>

public class SingleServerType
extends java.lang.Object
implements ServerType
  • Field Summary

    Fields inherited from interface io.datarouter.storage.servertype.ServerType

    ALL, DEV, UNKNOWN
  • Constructor Summary

    Constructors 
    Constructor Description
    SingleServerType​(java.lang.String persistentString, boolean isProduction)  
  • Method Summary

    Modifier and Type Method Description
    int compareTo​(ServerType other)  
    boolean equals​(java.lang.Object obj)  
    java.lang.String getDisplay()  
    java.lang.String getPersistentString()  
    int hashCode()  
    boolean isProduction()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SingleServerType

      public SingleServerType​(java.lang.String persistentString, boolean isProduction)
  • Method Details

    • getPersistentString

      public java.lang.String getPersistentString()
      Specified by:
      getPersistentString in interface io.datarouter.util.enums.PersistentString
      Specified by:
      getPersistentString in interface ServerType
    • isProduction

      public boolean isProduction()
      Specified by:
      isProduction in interface ServerType
    • getDisplay

      public java.lang.String getDisplay()
      Specified by:
      getDisplay in interface io.datarouter.util.enums.Displayable
      Specified by:
      getDisplay in interface ServerType
    • 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
    • compareTo

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