|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.lists.AbstractSequence gnu.lists.TreeList gnu.mapping.Values
public class Values
Encapsulate multiple values in a single object. In Scheme and Lisp mainly used to return multiple values from a function.
Field Summary | |
---|---|
static Values |
empty
|
static java.lang.Object[] |
noArgs
|
Fields inherited from class gnu.lists.TreeList |
---|
attrStart, BEGIN_ATTRIBUTE_LONG, BEGIN_DOCUMENT, data, docStart, END_DOCUMENT, END_GROUP_LONG, END_GROUP_SHORT, gapEnd, gapStart, INT_FOLLOWS, objects, oindex, POSITION_PAIR_FOLLOWS, PROCESSING_INSTRUCTION |
Constructor Summary | |
---|---|
Values()
|
|
Values(java.lang.Object[] values)
Constructor. |
Method Summary | |
---|---|
java.lang.Object |
call_with(Procedure proc)
Apply a Procedure with these values as the arguments. |
java.lang.Object |
canonicalize()
If a simple value, return that value. |
java.lang.Object[] |
getValues()
Get the values encapsulated. |
static Values |
make()
|
static java.lang.Object |
make(java.lang.Object[] vals)
|
static java.lang.Object |
make(Sequence seq)
|
static java.lang.Object |
make(TreeList list)
|
static java.lang.Object |
make(TreeList list,
int startPosition,
int endPosition)
|
static int |
nextIndex(java.lang.Object values,
int curIndex)
Helper method called by code using a SeriesTarget. |
static java.lang.Object |
nextValue(java.lang.Object values,
int curIndex)
Helper method called by code using a SeriesTarget. |
void |
print(java.io.PrintWriter ps)
|
void |
readExternal(java.io.ObjectInput in)
|
java.lang.Object |
readResolve()
|
static java.lang.Object |
values$V(java.lang.Object[] vals)
|
void |
writeExternal(java.io.ObjectOutput out)
|
static void |
writeValues(java.lang.Object value,
Consumer out)
|
Methods inherited from class gnu.lists.AbstractSequence |
---|
add, add, addAll, addAll, addPos, compare, compare, contains, containsAll, copyPos, elements, endPos, equals, equals, fill, fill, fillPosRange, fromEndIndex, get, getAttribute, getAttributeLength, getContainingSequenceSize, getEffectiveIndex, getIterator, getIterator, getIteratorAtPos, getLowBound, getSize, gotoChildrenStart, gotoParent, hasPrevious, indexOf, isAfterPos, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextIndex, previousPos, rank, releasePos, remove, remove, removeAll, removePos, removePosRange, retainAll, set, set, setPosNext, setPosPrevious, stableCompare, startPos, subList, subSequence, subSequencePos, toArray, toArray, toString, unsupported |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Object[] noArgs
public static final Values empty
Constructor Detail |
---|
public Values()
public Values(java.lang.Object[] values)
values
- the values to encapulateMethod Detail |
---|
public java.lang.Object[] getValues()
public static java.lang.Object values$V(java.lang.Object[] vals)
public static Values make()
public static java.lang.Object make(java.lang.Object[] vals)
public static java.lang.Object make(Sequence seq)
public static java.lang.Object make(TreeList list)
public static java.lang.Object make(TreeList list, int startPosition, int endPosition)
public final java.lang.Object canonicalize()
public java.lang.Object call_with(Procedure proc) throws java.lang.Throwable
java.lang.Throwable
public void print(java.io.PrintWriter ps)
print
in interface Printable
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException
public static int nextIndex(java.lang.Object values, int curIndex)
public static java.lang.Object nextValue(java.lang.Object values, int curIndex)
public static void writeValues(java.lang.Object value, Consumer out)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |