com.threerings.admin.web.gwt
Class ConfigField

java.lang.Object
  extended by com.threerings.admin.web.gwt.ConfigField
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable, Comparable<ConfigField>

public class ConfigField
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable, Comparable<ConfigField>

A GWT-friendly representation of a configuration tuple, consisting of the name of the entry, a type enum, and the toString() of the value.


Nested Class Summary
static class ConfigField.FieldType
           
 
Field Summary
 String name
           
 ConfigField.FieldType type
           
 String valStr
           
 
Constructor Summary
ConfigField()
          Deserialization constructor.
ConfigField(String name, ConfigField.FieldType type, String valStr)
          Construct a new ConfigField with the given values.
 
Method Summary
 int compareTo(ConfigField o)
           
 boolean equals(Object o)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public String name

type

public ConfigField.FieldType type

valStr

public String valStr
Constructor Detail

ConfigField

public ConfigField()
Deserialization constructor.


ConfigField

public ConfigField(String name,
                   ConfigField.FieldType type,
                   String valStr)
Construct a new ConfigField with the given values.

Method Detail

compareTo

public int compareTo(ConfigField o)
Specified by:
compareTo in interface Comparable<ConfigField>

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object