|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jstatcom.ts.TSTypes
public class TSTypes
This class contains an enumeration of constants that define different types of time series.
It implements the typesave enum pattern (Joshua Bloch, "Effective
Java", Item 21) . If you compare TSTypes, always use
the == operator. This is save, because they are Singletons
(Gamma et al., 1995) .
| Field Summary | |
|---|---|
static TSTypes |
DETERMINISTIC
Type for deterministic series. |
static TSTypes |
ENDOGENOUS
Type for endogenous series. |
static TSTypes |
EXOGENOUS
Type for exogenous series. |
| Constructor Summary | |
|---|---|
TSTypes(java.lang.String name)
Creates a TSTypes with a descriptive name. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Override prevention method to enforce a.equals(b) if and
only if a==b. |
javax.swing.Icon |
getIcon()
Gets the respective icon that visualizes the property. |
java.lang.String |
getName()
Gets the name of the type. |
int |
hashCode()
Override prevention method invokes super method. |
java.lang.String |
toString()
Returns a string representation of the type, do not use for comparisons. |
static TSTypes |
valueOf(java.lang.String str)
Factory method that gets a reference to the static type from an identifying string. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final TSTypes ENDOGENOUS
public static final TSTypes EXOGENOUS
public static final TSTypes DETERMINISTIC
| Constructor Detail |
|---|
public TSTypes(java.lang.String name)
TSTypes with a descriptive name.
name - identifier
java.lang.IllegalStateException - if a type with the same name has already been created before
java.lang.IllegalArgumentException - if (name == null)| Method Detail |
|---|
public static final TSTypes valueOf(java.lang.String str)
str - type name
null if
no such type exists
java.lang.IllegalArgumentException - if (str == null)public final boolean equals(java.lang.Object o)
a.equals(b) if and
only if a==b.
equals in class java.lang.Objecto - object to compare with
true if equal, false otherwisepublic javax.swing.Icon getIcon()
public final java.lang.String getName()
public final int hashCode()
hashCode in class java.lang.Objectpublic final java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||