ds.ov2.util
Class BigInteger_inputs
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<BigInteger>
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. |
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 |
serialVersionUID
public static final long serialVersionUID
- Field to disable the serialVersionUID warning.
- See Also:
- Constant Field Values
BigInteger_inputs
public BigInteger_inputs()
- Construct a new instance for recording
BigInteger
inputs.
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 formsg
- 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.