Class ServerPing.Version

  • Enclosing class:
    ServerPing

    public static final class ServerPing.Version
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Version​(int protocol, java.lang.String name)
      Creates a new instance.
    • Constructor Detail

      • Version

        public Version​(int protocol,
                       java.lang.String name)
        Creates a new instance.
        Parameters:
        protocol - the protocol version as an integer
        name - a friendly name for the protocol version
    • Method Detail

      • getProtocol

        public int getProtocol()
      • getName

        public java.lang.String getName()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object