org.nlogo.api
Class LogoList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<Object>
              extended by org.nlogo.api.LogoList
All Implemented Interfaces:
Serializable, Iterable<Object>, Collection<Object>, List<Object>

public final class LogoList
extends AbstractSequentialList<Object>
implements Serializable

See Also:
Serialized Form

Field Summary
static LogoList EMPTY
           
 
Constructor Summary
LogoList()
           
LogoList(Collection<?> collection)
           
LogoList(Object... objs)
           
 
Method Summary
 void add(int index, Object obj)
           
 LogoList butFirst()
           
 LogoList butLast()
           
 Object first()
           
 LogoList fput(Object obj)
           
 Iterator<Object> iterator()
           
 ListIterator<Object> listIterator(int index)
           
 LogoList logoSublist(int start, int stop)
           
 LogoList lput(Object obj)
           
 LogoList removeItem(int index)
           
 LogoList replaceItem(int index, Object obj)
           
 LogoList reverse()
           
 int size()
           
 
Methods inherited from class java.util.AbstractSequentialList
addAll, get, remove, set
 
Methods inherited from class java.util.AbstractList
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Field Detail

EMPTY

public static final LogoList EMPTY
Constructor Detail

LogoList

public LogoList()

LogoList

public LogoList(Collection<?> collection)

LogoList

public LogoList(Object... objs)
Method Detail

iterator

public Iterator<Object> iterator()
Specified by:
iterator in interface Iterable<Object>
Specified by:
iterator in interface Collection<Object>
Specified by:
iterator in interface List<Object>
Overrides:
iterator in class AbstractSequentialList<Object>

listIterator

public ListIterator<Object> listIterator(int index)
Specified by:
listIterator in interface List<Object>
Specified by:
listIterator in class AbstractSequentialList<Object>

size

public int size()
Specified by:
size in interface Collection<Object>
Specified by:
size in interface List<Object>
Specified by:
size in class AbstractCollection<Object>

add

public void add(int index,
                Object obj)
Specified by:
add in interface List<Object>
Overrides:
add in class AbstractSequentialList<Object>

first

public Object first()

fput

public LogoList fput(Object obj)

lput

public LogoList lput(Object obj)

reverse

public LogoList reverse()

replaceItem

public LogoList replaceItem(int index,
                            Object obj)

logoSublist

public LogoList logoSublist(int start,
                            int stop)

butFirst

public LogoList butFirst()

butLast

public LogoList butLast()

removeItem

public LogoList removeItem(int index)