java.lang.Object com.realtime.crossfire.jxclient.metaserver.MetaserverEntry
public class MetaserverEntry
Represents a response line from the metaserver.
Field Summary | |
---|---|
private java.lang.String |
archBase
|
private long |
bytesIn
|
private long |
bytesOut
|
private java.lang.String |
codeBase
|
private java.lang.String |
comment
|
private java.lang.String |
hostname
|
private static java.util.regex.Pattern |
HTML_TAG_MATCHER
Matches html tags. |
private java.lang.String |
mapBase
|
private int |
players
|
private int |
updateSeconds
|
private int |
uptimeSeconds
|
private java.lang.String |
version
|
Constructor Summary | |
---|---|
MetaserverEntry(int updateSeconds,
java.lang.String hostname,
int players,
java.lang.String version,
java.lang.String comment,
long bytesIn,
long bytesOut,
int uptimeSeconds,
java.lang.String archBase,
java.lang.String mapBase,
java.lang.String codeBase)
|
Method Summary | |
---|---|
int |
compareTo(MetaserverEntry o)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
format(java.lang.String format)
Return a formatted string using the given format. |
java.lang.String |
getArchBase()
|
long |
getBytesIn()
|
long |
getBytesOut()
|
java.lang.String |
getCodeBase()
|
java.lang.String |
getComment()
|
java.lang.String |
getHostname()
|
java.lang.String |
getMapBase()
|
int |
getPlayers()
|
int |
getUpdateSeconds()
|
int |
getUptimeSeconds()
|
java.lang.String |
getVersion()
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
@NotNull private final java.lang.String archBase
private final long bytesIn
private final long bytesOut
@NotNull private final java.lang.String codeBase
@NotNull private final java.lang.String comment
@NotNull private final java.lang.String hostname
@NotNull private static final java.util.regex.Pattern HTML_TAG_MATCHER
@NotNull private final java.lang.String mapBase
private final int players
private final int updateSeconds
private final int uptimeSeconds
@NotNull private final java.lang.String version
Constructor Detail |
---|
public 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)
Method Detail |
---|
public int compareTo(@NotNull MetaserverEntry o)
compareTo
in interface java.lang.Comparable<MetaserverEntry>
public boolean equals(@Nullable java.lang.Object obj)
equals
in class java.lang.Object
@NotNull public java.lang.String format(@NotNull java.lang.String format)
format
- The format.
@NotNull public java.lang.String getArchBase()
public long getBytesIn()
public long getBytesOut()
@NotNull public java.lang.String getCodeBase()
@NotNull public java.lang.String getComment()
@NotNull public java.lang.String getHostname()
@NotNull public java.lang.String getMapBase()
public int getPlayers()
public int getUpdateSeconds()
public int getUptimeSeconds()
@NotNull public java.lang.String getVersion()
public int hashCode()
hashCode
in class java.lang.Object
@NotNull public java.lang.String toString()
toString
in class java.lang.Object