|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.iu.cnets.klatsch.lang.Value
edu.iu.cnets.klatsch.lang.VQueue
public class VQueue
This value represents a queue (i.e. FIFO).
Field Summary | |
---|---|
(package private) java.util.Queue<Value> |
q
the values actually being stored |
Constructor Summary | |
---|---|
VQueue(java.util.Queue<Value> q)
|
Method Summary | |
---|---|
Value |
method_deq(Value... args)
deq() : Dequeue the head element from the queue. |
Value |
method_empty(Value... args)
empty() : Returns true if the queue is empty. |
Value |
method_enq(Value... args)
enq(v) : Enqueues the value v to the end of the queue. |
Value |
method_len(Value... args)
len() : Returns the length of the queue. |
Value |
method_list(Value... args)
list() : Converts the queue to a list. |
Value |
method_peek(Value... args)
peek() : Returns the head elements without dequeuing it. |
Value |
method_stream(Value... args)
stream() : Converts the queue to a stream. |
java.lang.String |
toString()
|
Methods inherited from class edu.iu.cnets.klatsch.lang.Value |
---|
require, requireCount, requireType, toJson |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
java.util.Queue<Value> q
Constructor Detail |
---|
public VQueue(java.util.Queue<Value> q)
Method Detail |
---|
public java.lang.String toString()
toString
in class Value
public Value method_deq(Value... args) throws EvaluationException
EvaluationException
public Value method_empty(Value... args) throws EvaluationException
EvaluationException
public Value method_enq(Value... args) throws EvaluationException
EvaluationException
public Value method_len(Value... args) throws EvaluationException
EvaluationException
public Value method_list(Value... args) throws EvaluationException
EvaluationException
public Value method_peek(Value... args) throws EvaluationException
EvaluationException
public Value method_stream(Value... args) throws EvaluationException
EvaluationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |