public class Agents extends AbstractList<Agent>
modCount| Constructor and Description |
|---|
Agents(long[] input)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
free()
Deletes the C instantiation.
|
Agent |
get(int index)
Gets the agent at the specified index
|
int |
size()
Returns the size of the agent list
|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic Agents(long[] input)
input - list of C pointers to the underlying agentspublic Agent get(int index)
public int size()
size in interface Collection<Agent>size in interface List<Agent>size in class AbstractCollection<Agent>()public void free()
Copyright © 2018. All rights reserved.