edu.byu.ece.edif.core
Class IntegerTypedValue

java.lang.Object
  extended by edu.byu.ece.edif.core.IntegerTypedValue
All Implemented Interfaces:
EdifOut, EdifTypedValue, java.io.Serializable

public class IntegerTypedValue
extends java.lang.Object
implements EdifTypedValue

Signifies that the EDIF file has an Integer value type.

Version:
$Id:IntegerTypedValue.java 198 2008-04-16 21:14:21Z jamesfcarroll $
See Also:
Serialized Form

Field Summary
private  int _integerValue
          Contains the value of this IntegerTypedValue Object
 
Constructor Summary
IntegerTypedValue(int value)
          Construct an IntegerTypedValue Object with an initial value as the passed-in value.
 
Method Summary
 boolean equals(EdifTypedValue value)
           
 int getIntegerValue()
          Return the Integer value of this Object.
 void toEdif(EdifPrintWriter epw)
          Convert this object to EDIF format and write it to the passed in EdifPrintWriter Object.
 java.lang.String toString()
          Return a String representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_integerValue

private int _integerValue
Contains the value of this IntegerTypedValue Object

Constructor Detail

IntegerTypedValue

public IntegerTypedValue(int value)
Construct an IntegerTypedValue Object with an initial value as the passed-in value.

Parameters:
value - The initial value of this IntegerTypedValue Object
Method Detail

equals

public boolean equals(EdifTypedValue value)
Specified by:
equals in interface EdifTypedValue

getIntegerValue

public int getIntegerValue()
Return the Integer value of this Object.

Returns:
An int specifying the value of this IntegerTypedValue Object.

toEdif

public void toEdif(EdifPrintWriter epw)
Convert this object to EDIF format and write it to the passed in EdifPrintWriter Object.

Specified by:
toEdif in interface EdifOut
Parameters:
epw - The EdifPrintWriter Object that the EDIF data will be written to

toString

public java.lang.String toString()
Return a String representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
A String representing this IntegerTypedValue Object