|
ref_send API 2.17 defensive programming in Java |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ref_send.list.List<T>
T
- element typepublic final class List<T>
A linked list.
Method Summary | ||
---|---|---|
void |
append(T value)
Appends a value. |
|
Receiver<T> |
appender()
Constructs an appender. |
|
T |
getFront()
Gets the front value. |
|
long |
getSize()
Gets the element count. |
|
boolean |
isEmpty()
Is the element count zero? |
|
java.util.Iterator<T> |
iterator()
Iterates over the values in this list. |
|
static
|
list()
Constructs a list. |
|
T |
pop()
Removes the front element. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> List<T> list()
T
- element typepublic final java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
public boolean isEmpty()
public long getSize()
public T getFront() throws java.lang.NullPointerException
java.lang.NullPointerException
- list is emptypublic T pop() throws java.lang.NullPointerException
java.lang.NullPointerException
- list is emptypublic void append(T value)
value
- value to appendpublic Receiver<T> appender()
|
ref_send API 2.17 defensive programming in Java |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.