Package com.bayesserver
Class NetworkNodeGroupCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<NodeGroup>
-
- com.bayesserver.NetworkNodeGroupCollection
-
public final class NetworkNodeGroupCollection extends AbstractList<NodeGroup>
A collection of groups.
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, NodeGroup element)voidclear()NodeGroupget(int index)NodeGroupget(String name)Gets theNodeGroupwith the specified name, from the collection, or returns null if not found.NetworkgetNetwork()Gets the network instance that these groups belong to.NodeGroupremove(int index)NodeGroupset(int index, NodeGroup element)intsize()-
Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
getNetwork
public Network getNetwork()
Gets the network instance that these groups belong to.
-
get
public NodeGroup get(String name)
Gets theNodeGroupwith the specified name, from the collection, or returns null if not found.
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<NodeGroup>- Specified by:
clearin interfaceList<NodeGroup>- Overrides:
clearin classAbstractList<NodeGroup>
-
remove
public NodeGroup remove(int index)
-
add
public void add(int index, NodeGroup element)
-
get
public NodeGroup get(int index)
-
size
public int size()
- Specified by:
sizein interfaceCollection<NodeGroup>- Specified by:
sizein interfaceList<NodeGroup>- Specified by:
sizein classAbstractCollection<NodeGroup>
-
-