|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbyucc.edif.ScaledInteger
public class ScaledInteger
Represents an integer that can hold either of two types: int, and
ExpValue.
| Field Summary | |
|---|---|
private ExpValue |
_expValue
Value of the object if this object is of type ExpValue. |
private int |
_intValue
Value of the object if this object is of type int. |
private int |
_valueType
Specifies what type of value this object holds: INT or EEE. |
static int |
EEE
Value representing that this object has an ExpValue
value type. |
static int |
INT
Value representing that this object has an int value type. |
| Constructor Summary | |
|---|---|
ScaledInteger(int type)
Constructs a Scaled Integer Object with the specified type. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone of this object. |
boolean |
equals(ScaledInteger cmp)
Returns true if the passed-in ScaledInteger is equal or a match to this one doing a compare on the value of this object. |
boolean |
existsWithin(EdifNumber cmp)
Compares to see if this Object equals or matches one of the ScaledInteger Objects in the passed in ArrayList (EdifNumber). |
void |
setValue(ExpValue value)
Sets the value of this object ( ExpValue type). |
void |
setValue(int value)
Sets the value of this object (int type). |
void |
toEdif(EdifPrintWriter epw)
Writes this object in EDIF format to the passed in EdifPrintWriter. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int INT
public static final int EEE
ExpValue
value type.
private int _intValue
private ExpValue _expValue
ExpValue.
private int _valueType
INT or EEE.
| Constructor Detail |
|---|
public ScaledInteger(int type)
INT
EEE
type - The type of this Scaled Integer Object| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic boolean equals(ScaledInteger cmp)
cmp - The ScaledInteger Object to compare this Object to
public boolean existsWithin(EdifNumber cmp)
cmp - The EdifNumber/ArrayList that contains a Collection
of ScaledInteger Objects to compare this one to
public void setValue(int value)
value - The new value of this objectpublic void setValue(ExpValue value)
ExpValue type).
value - The ExpValue, or exponent value to set
this object to.public void toEdif(EdifPrintWriter epw)
toEdif in interface EdifOutepw - The EdifPrintWriter object that will be written topublic 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 | ||||||||