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 void
add(int index, NodeGroup element)
void
clear()
NodeGroup
get(int index)
NodeGroup
get(String name)
Gets theNodeGroup
with the specified name, from the collection, or returns null if not found.Network
getNetwork()
Gets the network instance that these groups belong to.NodeGroup
remove(int index)
NodeGroup
set(int index, NodeGroup element)
int
size()
-
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 theNodeGroup
with the specified name, from the collection, or returns null if not found.
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<NodeGroup>
- Specified by:
clear
in interfaceList<NodeGroup>
- Overrides:
clear
in 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:
size
in interfaceCollection<NodeGroup>
- Specified by:
size
in interfaceList<NodeGroup>
- Specified by:
size
in classAbstractCollection<NodeGroup>
-
-