cmu.survey.data.databits
Class IntegerDataBit
java.lang.Object
cmu.survey.data.databits.DataBit<T>
cmu.survey.data.databits.GenericNumberDataBit<java.lang.Integer>
cmu.survey.data.databits.IntegerDataBit
- All Implemented Interfaces:
- java.lang.Cloneable, CloneablePublicly, CanAddPropertyChangeListener
- Direct Known Subclasses:
- CopyingNumberDataBit
public class IntegerDataBit
- extends GenericNumberDataBit<java.lang.Integer>
- implements CloneablePublicly
Constructor Summary |
IntegerDataBit(java.lang.String dataFieldName)
|
IntegerDataBit(java.lang.String dataFieldName,
java.lang.Integer startValue)
|
Method Summary |
IntegerDataBit |
copy()
|
boolean |
equals(java.lang.Object compareMe)
|
java.lang.Integer |
getValue()
Kept around for cross-compilation with Java 1.4. |
boolean |
hasBeenModified()
Kept around for cross-compilation with Java 1.4. |
void |
setValue(java.lang.Integer newValue)
Kept around for cross-compilation with Java 1.4. |
java.lang.String |
toString()
|
Methods inherited from class cmu.survey.data.databits.DataBit |
addPropertyChangeListener, clone, getLastSavedValue, getName, isEditable, removePropertyChangeListener, setEditable, setHasBeenModified, setHasBeenModified, setLastSavedObjectValue, setLastSavedValue, setValueGetUndo |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IntegerDataBit
public IntegerDataBit(java.lang.String dataFieldName)
- Parameters:
dataFieldName
-
IntegerDataBit
public IntegerDataBit(java.lang.String dataFieldName,
java.lang.Integer startValue)
hasBeenModified
public boolean hasBeenModified()
- Kept around for cross-compilation with Java 1.4. This is a compiler bug -- as soon as all 1.4 code is removed, this can be removed.
- Overrides:
hasBeenModified
in class DataBit<java.lang.Integer>
- Returns:
getValue
public java.lang.Integer getValue()
- Kept around for cross-compilation with Java 1.4. This is a compiler bug -- as soon as all 1.4 code is removed, this can be removed.
- Overrides:
getValue
in class DataBit<java.lang.Integer>
setValue
public void setValue(java.lang.Integer newValue)
- Kept around for cross-compilation with Java 1.4. This is a compiler bug -- as soon as all 1.4 code is removed, this can be removed.
- Overrides:
setValue
in class DataBit<java.lang.Integer>
toString
public java.lang.String toString()
- Overrides:
toString
in class DataBit<java.lang.Integer>
copy
public IntegerDataBit copy()
- Specified by:
copy
in class DataBit<java.lang.Integer>
equals
public boolean equals(java.lang.Object compareMe)
- Overrides:
equals
in class java.lang.Object