com.realtime.crossfire.jxclient.metaserver
Class MetaserverEntry

java.lang.Object
  extended by com.realtime.crossfire.jxclient.metaserver.MetaserverEntry
All Implemented Interfaces:
java.lang.Comparable<MetaserverEntry>

public class MetaserverEntry
extends java.lang.Object
implements java.lang.Comparable<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

archBase

@NotNull
private final java.lang.String archBase

bytesIn

private final long bytesIn

bytesOut

private final long bytesOut

codeBase

@NotNull
private final java.lang.String codeBase

comment

@NotNull
private final java.lang.String comment

hostname

@NotNull
private final java.lang.String hostname

HTML_TAG_MATCHER

@NotNull
private static final java.util.regex.Pattern HTML_TAG_MATCHER
Matches html tags.


mapBase

@NotNull
private final java.lang.String mapBase

players

private final int players

updateSeconds

private final int updateSeconds

uptimeSeconds

private final int uptimeSeconds

version

@NotNull
private final java.lang.String version
Constructor Detail

MetaserverEntry

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

compareTo

public int compareTo(@NotNull
                     MetaserverEntry o)

Specified by:
compareTo in interface java.lang.Comparable<MetaserverEntry>

equals

public boolean equals(@Nullable
                      java.lang.Object obj)

Overrides:
equals in class java.lang.Object

format

@NotNull
public java.lang.String format(@NotNull
                                       java.lang.String format)
Return a formatted string using the given format.

Supported format strings:

Parameters:
format - The format.
Returns:
The formatted string.

getArchBase

@NotNull
public java.lang.String getArchBase()

getBytesIn

public long getBytesIn()

getBytesOut

public long getBytesOut()

getCodeBase

@NotNull
public java.lang.String getCodeBase()

getComment

@NotNull
public java.lang.String getComment()

getHostname

@NotNull
public java.lang.String getHostname()

getMapBase

@NotNull
public java.lang.String getMapBase()

getPlayers

public int getPlayers()

getUpdateSeconds

public int getUpdateSeconds()

getUptimeSeconds

public int getUptimeSeconds()

getVersion

@NotNull
public java.lang.String getVersion()

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

toString

@NotNull
public java.lang.String toString()

Overrides:
toString in class java.lang.Object