Class ServerPing.Players

  • Enclosing class:
    ServerPing

    public static final class ServerPing.Players
    extends java.lang.Object
    • Constructor Detail

      • Players

        public Players​(int online,
                       int max,
                       java.util.List<ServerPing.SamplePlayer> sample)
        Creates a new instance.
        Parameters:
        online - the number of online players
        max - the maximum number of players
        sample - a sample of players on the server
    • Method Detail

      • getOnline

        public int getOnline()
      • getMax

        public int getMax()
      • 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