public final class CollectionType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static CollectionType |
FORECASTS |
static CollectionType |
NONE |
static CollectionType |
STATIONS |
static CollectionType |
TIMESERIES |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
CollectionType with same name are equal.
|
static CollectionType |
findType(java.lang.String name)
Return the known CollectionType that matches the given name (ignoring case)
or null if the name is unknown.
|
static java.util.Collection<CollectionType> |
getAllTypes() |
static CollectionType |
getType(java.lang.String name)
Return a CollectionType that matches the given name by either matching
a known type (ignoring case) or creating an unknown type.
|
int |
hashCode()
Override Object.hashCode() to be consistent with this equals.
|
java.lang.String |
toString()
Return the collection name.
|
public static final CollectionType NONE
public static final CollectionType TIMESERIES
public static final CollectionType STATIONS
public static final CollectionType FORECASTS
public static java.util.Collection<CollectionType> getAllTypes()
public static CollectionType findType(java.lang.String name)
name
- name of the desired CollectionType.public static CollectionType getType(java.lang.String name)
name
- name of the desired CollectionTypepublic java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object