| Modifier and Type | Field and Description |
|---|---|
private double |
cat
The value of the category.
|
| Constructor and Description |
|---|
DoubleCategory(double cat)
Creates a new category with the given value.
|
| Modifier and Type | Method and Description |
|---|---|
double |
asDouble()
Returns a double representation of this category.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public DoubleCategory(double cat)
cat - some booleanpublic int hashCode()
public boolean equals(java.lang.Object obj)
public double asDouble()
Categorypublic java.lang.String toString()
toString in class java.lang.Object