ds.ov2.util
Class BigInteger_inputs

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector<BigInteger>
              extended by ds.ov2.util.BigInteger_inputs
All Implemented Interfaces:
Serializable, Cloneable, Iterable<BigInteger>, Collection<BigInteger>, List<BigInteger>, RandomAccess

public class BigInteger_inputs
extends Vector<BigInteger>

A collection of BigInteger inputs. To be used in conjunction with BigInt_input_option and BigInt_hex_input_option.

Use pop() to pop off the first element from this collection.

See Also:
Serialized Form
CPP Preprocessing
no cpp preprocessing needed
Execution Environment:
host
Author:
Hendrik Tews
Version:
$Revision: 1.1 $
Last Commit:
$Date: 2009-06-02 09:56:03 $ by $Author: tews $

Field Summary
static long serialVersionUID
          Field to disable the serialVersionUID warning.
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
BigInteger_inputs()
          Construct a new instance for recording BigInteger inputs.
 
Method Summary
 boolean has_n_inputs(int n, String msg)
          Check whether there are still n inputs available.
 BigInteger pop()
          Return and remove the first element.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Field to disable the serialVersionUID warning.

See Also:
Constant Field Values
Constructor Detail

BigInteger_inputs

public BigInteger_inputs()
Construct a new instance for recording BigInteger inputs.

Method Detail

has_n_inputs

public boolean has_n_inputs(int n,
                            String msg)
Check whether there are still n inputs available. If there are some but not enough inputs the message msg is printed with some diagnostics.

Parameters:
n - number of fix inputs to check for
msg - identification string for the warning message
Returns:
true if n inputs are still available

pop

public BigInteger pop()
Return and remove the first element. Equal to remove(0).

Returns:
first element
Throws:
ArrayIndexOutOfBoundsException - if the collection is empty.