Package com.codetaco.math.impl
Class ValueStack
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.Vector<E>
-
- java.util.Stack<Object>
-
- com.codetaco.math.impl.ValueStack
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Object>
,Collection<Object>
,List<Object>
,RandomAccess
public class ValueStack extends Stack<Object>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description ValueStack()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
byteArrayAsString(Object bytearray)
double
convertToDouble(Object fromStack)
float
convertToFloat(Object fromStack)
int
convertToInteger(Object fromStack)
long
convertToLong(Object fromStack)
ZonedDateTime
convertToZonedDateTime(Object fromStack)
Object[]
ensureSameTypes()
Object[]
ensureSameTypes(int count)
Object[]
ensureSameTypes(Object... fromStack)
boolean
popBoolean()
byte[]
popByteArray()
double
popDouble()
Object
popExactly()
float
popFloat()
int
popInteger()
long
popLong()
String
popString()
Object
popStringOrByteArray()
Object
popWhatever()
ZonedDateTime
popZonedDateTime()
-
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
-
-
-
Method Detail
-
convertToZonedDateTime
public ZonedDateTime convertToZonedDateTime(Object fromStack) throws ParseException
- Throws:
ParseException
-
convertToDouble
public double convertToDouble(Object fromStack) throws ParseException
- Throws:
ParseException
-
convertToFloat
public float convertToFloat(Object fromStack) throws ParseException
- Throws:
ParseException
-
convertToLong
public long convertToLong(Object fromStack) throws ParseException
- Throws:
ParseException
-
convertToInteger
public int convertToInteger(Object fromStack) throws ParseException
- Throws:
ParseException
-
ensureSameTypes
public Object[] ensureSameTypes() throws ParseException
- Throws:
ParseException
-
ensureSameTypes
public Object[] ensureSameTypes(int count) throws ParseException
- Throws:
ParseException
-
ensureSameTypes
public Object[] ensureSameTypes(Object... fromStack) throws ParseException
- Throws:
ParseException
-
popBoolean
public boolean popBoolean() throws ParseException
- Throws:
ParseException
-
popByteArray
public byte[] popByteArray() throws ParseException
- Throws:
ParseException
-
popZonedDateTime
public ZonedDateTime popZonedDateTime() throws ParseException
- Throws:
ParseException
-
popDouble
public double popDouble() throws ParseException
- Throws:
ParseException
-
popFloat
public float popFloat() throws ParseException
- Throws:
ParseException
-
popLong
public long popLong() throws ParseException
- Throws:
ParseException
-
popInteger
public int popInteger() throws ParseException
- Throws:
ParseException
-
popString
public String popString() throws ParseException
- Throws:
ParseException
-
popStringOrByteArray
public Object popStringOrByteArray() throws ParseException
- Throws:
ParseException
-
popWhatever
public Object popWhatever()
-
popExactly
public Object popExactly()
-
-