org.nlogo.api
Class LogoList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<Object>
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
EMPTY
public static final LogoList EMPTY
LogoList
public LogoList()
LogoList
public LogoList(Collection<?> collection)
LogoList
public LogoList(Object... objs)
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)