Class used to simulate an enumeration.
public static class DatePrecision extends Enum
{
public static final DatePrecision NONE = new DatePrecision(-1,"NONE");
public static final DatePrecision SECONDS = new DatePrecision("SECONDS");
public static final DatePrecision MILLISECONDS = new DatePrecision("MILLISECONDS");
private DatePrecision(String s)
{
super(s);
}
private DatePrecision(int v, String s)
{
super(v,s);
}
public static DatePrecision getPrecision(String precision)
{
return (DatePrecision)get(precision.toUpperCase());
}
}