byucc.edif
Class EdifNumber

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended bybyucc.edif.EdifNumber
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, EdifOut, java.util.List, java.util.RandomAccess, java.io.Serializable

public class EdifNumber
extends java.util.ArrayList
implements EdifOut, java.io.Serializable

Extends ArrayList, and stores ScaledInteger objects.

Version:
$Id: EdifNumber.java,v 1.10 2004/08/27 19:16:42 tsa6 Exp $
Author:
Welson Sun, Mike Wirthlin, Tyler Anderson
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.AbstractList
 
Field Summary
 
Fields inherited from class java.util.ArrayList
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
EdifNumber()
           
 
Method Summary
 void addScaledInteger(ScaledInteger value)
          Adds a ScaledInteger Object to this ArrayList of EdifNumbers.
 java.lang.Object clone()
          Returns a clone or copy of this object.
 boolean equals(EdifNumber cmp)
          Returns True if this Object matches the passed-in one.
 void toEdif(EdifPrintWriter epw)
          Converts this object to EDIF format, and writes it to the passed-in EdifPrintWriter Object.
 java.lang.String toString()
          Returns a String representation of this Object.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

EdifNumber

public EdifNumber()
Method Detail

addScaledInteger

public void addScaledInteger(ScaledInteger value)
Adds a ScaledInteger Object to this ArrayList of EdifNumbers.

Parameters:
value - The ScaledInteger Object to add to this ArrayList

clone

public java.lang.Object clone()
Returns a clone or copy of this object.

Returns:
An Object representing a copy of clone of this object

equals

public boolean equals(EdifNumber cmp)
Returns True if this Object matches the passed-in one. The compare is done by checking the size of each object, and then to make sure each ScaledInteger in this Object matches within the other Object.

Parameters:
cmp - The Object to compare with this one
Returns:
True if this Object matches the passed-in one

toEdif

public void toEdif(EdifPrintWriter epw)
Converts this object to EDIF format, and writes 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()
Returns a String representation of this Object.

Returns:
A String representing this Object, and all the ScaledInteger Objects in the ArrayList