public abstract class IterableConstant<T extends java.io.Serializable> extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<IterableConstant<T>>, Constant
| Modifier | Constructor and Description |
|---|---|
protected |
IterableConstant(T value)
Constructor for IterableConstant.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(IterableConstant<T> o) |
java.util.Enumeration |
elements()
Creates an enumeration of constant values.
|
boolean |
equals(java.lang.Object obj) |
T |
getValue()
Getter for the field
value. |
int |
hashCode() |
void |
setValue(T value)
Setter for the field
value. |
T |
value()
Provides actual value stored in constant.
|
protected IterableConstant(T value)
Constructor for IterableConstant.
value - a T object.public int compareTo(IterableConstant<T> o)
compareTo in interface java.lang.Comparable<IterableConstant<T extends java.io.Serializable>>public T value()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.util.Enumeration elements()
public T getValue()
Getter for the field value.
public void setValue(T value)
Setter for the field value.
value - a T object.Copyright © 2021. All rights reserved.