public class MetaserverEntry extends java.lang.Object implements java.lang.Comparable<MetaserverEntry>
| Constructor and Description |
|---|
MetaserverEntry(int updateSeconds,
@NotNull java.lang.String hostname,
int players,
@NotNull java.lang.String version,
@NotNull java.lang.String comment,
long bytesIn,
long bytesOut,
int uptimeSeconds,
@NotNull java.lang.String archBase,
@NotNull java.lang.String mapBase,
@NotNull java.lang.String codeBase)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(@NotNull MetaserverEntry o) |
boolean |
equals(@Nullable java.lang.Object obj) |
@NotNull java.lang.String |
format(@NotNull java.lang.String format)
Returns a formatted string using the given format.
|
@NotNull java.lang.String |
getArchBase()
Returns the server's arch base.
|
long |
getBytesIn()
Returns the number of bytes received.
|
long |
getBytesOut()
Returns the number of bytes sent.
|
@NotNull java.lang.String |
getCodeBase()
Returns the server's code base.
|
@NotNull java.lang.String |
getComment()
Returns the server comment.
|
@NotNull java.lang.String |
getHostname()
Returns the hostname.
|
@NotNull java.lang.String |
getKey()
Returns the unique key for this entry.
|
@NotNull java.lang.String |
getMapBase()
Returns the server's map base.
|
int |
getPlayers()
Returns the number of players.
|
int |
getUpdateSeconds()
Returns the time since last update in seconds.
|
int |
getUptimeSeconds()
Returns the server's uptime in seconds.
|
@NotNull java.lang.String |
getVersion()
Returns the server version.
|
int |
hashCode() |
@NotNull java.lang.String |
toString() |
public MetaserverEntry(int updateSeconds,
@NotNull
@NotNull java.lang.String hostname,
int players,
@NotNull
@NotNull java.lang.String version,
@NotNull
@NotNull java.lang.String comment,
long bytesIn,
long bytesOut,
int uptimeSeconds,
@NotNull
@NotNull java.lang.String archBase,
@NotNull
@NotNull java.lang.String mapBase,
@NotNull
@NotNull java.lang.String codeBase)
updateSeconds - time since last update in secondshostname - the hostnameplayers - the number of playersversion - the server versioncomment - the server commentbytesIn - the number of bytes receivedbytesOut - the number of bytes sentuptimeSeconds - the server's uptime in secondsarchBase - the server's arch basemapBase - the server's map basecodeBase - the server's code basepublic int getUpdateSeconds()
@NotNull public @NotNull java.lang.String getHostname()
public int getPlayers()
@NotNull public @NotNull java.lang.String getVersion()
@NotNull public @NotNull java.lang.String getComment()
public long getBytesIn()
public long getBytesOut()
public int getUptimeSeconds()
@NotNull public @NotNull java.lang.String getArchBase()
@NotNull public @NotNull java.lang.String getMapBase()
@NotNull public @NotNull java.lang.String getCodeBase()
@NotNull public @NotNull java.lang.String getKey()
@NotNull public @NotNull java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(@NotNull
@NotNull MetaserverEntry o)
compareTo in interface java.lang.Comparable<MetaserverEntry>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(@Nullable
@Nullable java.lang.Object obj)
equals in class java.lang.Object@NotNull
public @NotNull java.lang.String format(@NotNull
@NotNull java.lang.String format)
Supported format strings:
format - the format