Package gnu.mapping
Class Values.Values2<E,V1 extends E,V2 extends E>
- java.lang.Object
-
- gnu.lists.AbstractSequence<E>
-
- gnu.mapping.Values<E>
-
- gnu.mapping.Values.Values2<E,V1,V2>
-
- All Implemented Interfaces:
Consumable
,Externalizable
,Serializable
public static class Values.Values2<E,V1 extends E,V2 extends E> extends Values<E>
A specialization of Values for exactly 2 values.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gnu.mapping.Values
Values.FromArray<E>, Values.FromList<E>, Values.FromTreeList, Values.Values2<E,V1 extends E,V2 extends E>
-
-
Field Summary
-
Fields inherited from class gnu.lists.AbstractSequence
noInts
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
call_with(Procedure proc)
Apply a Procedure with these values as the arguments.Object
canonicalize()
If a simple value, return that value.E
get(int index)
V1
getValue1()
V2
getValue2()
Object[]
getValues()
Get the values encapsulated.void
readExternal(ObjectInput in)
int
size()
-
Methods inherited from class gnu.mapping.Values
checkFinalPos, countValues, getFromPos, getFromPosFinal, incrPos, make, make, make, make, makeFromArray, nextIndex, nextIndex, nextValue, print, readResolve, values, values2, writeExternal, writeValues
-
Methods inherited from class gnu.lists.AbstractSequence
add, add, addAll, addAll, addPos, asImmutable, badRank, boundedHash, checkCanWrite, checkRank, clear, compare, compare, compare, consume, consume, consumeNext, consumePosRange, contains, containsAll, copyPos, createPos, createRelativePos, effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, elements, endPos, equals, equals, fill, fill, fillPosRange, firstAttributePos, firstChildPos, firstChildPos, fromEndIndex, get, get, get, get, getAttribute, getAttributeLength, getBooleanRaw, getByteRaw, getCharRaw, getContainingSequenceSize, getDoubleRaw, getElementKind, getFloatRaw, getIndexDifference, getInt, getInt, getInt, getInt, getInt, getIntRaw, getIterator, getIterator, getIteratorAtPos, getLongRaw, getLowBound, getNextKind, getNextTypeName, getNextTypeObject, getPosNext, getPosPrevious, getRaw, getRowMajor, getShortRaw, getSize, getSize, gotoAttributesStart, gotoChildrenStart, gotoParent, hashCode, hasNext, hasPrevious, indexOf, isAfterPos, isEmpty, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextMatching, nextPos, parentPos, previousPos, rank, releasePos, remove, remove, removeAll, removePos, removePosRange, retainAll, set, set, setAt, setBuffer, setPosNext, setPosPrevious, setRaw, stableCompare, startPos, subList, subSequence, subSequencePos, toArray, toArray, toString, toString, unsupported, unsupportedException
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gnu.lists.Consumable
consume
-
-
-
-
Method Detail
-
getValue1
public V1 getValue1()
-
getValue2
public V2 getValue2()
-
call_with
public Object call_with(Procedure proc) throws Throwable
Description copied from class:Values
Apply a Procedure with these values as the arguments.
-
size
public int size()
- Overrides:
size
in classAbstractSequence<E>
-
get
public E get(int index)
- Overrides:
get
in classAbstractSequence<E>
-
getValues
public Object[] getValues()
Description copied from class:Values
Get the values encapsulated.
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
canonicalize
public Object canonicalize()
Description copied from class:Values
If a simple value, return that value. Also, if no values, return empty.- Overrides:
canonicalize
in classValues<E>
-
-