gov.sandia.cognition.collection
Interface MultiCollection<T>

Type Parameters:
T - The type of the data in the collection.
All Superinterfaces:
Collection<T>, Iterable<T>
All Known Implementing Classes:
DefaultMultiCollection, RangeExcludedArrayList

public interface MultiCollection<T>
extends Collection<T>

An interface for a collection that is made up of a group of subcollections.

Since:
3.0
Author:
Justin Basilico

Method Summary
 int getSubCollectionsCount()
          Gets the number of sub-collections in the multi-collection.
 Collection<? extends Collection<T>> subCollections()
          Returns the sub-collections of the multi-collection.
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

subCollections

Collection<? extends Collection<T>> subCollections()
Returns the sub-collections of the multi-collection.

Returns:
The sub-collection of the multi-collection.

getSubCollectionsCount

int getSubCollectionsCount()
Gets the number of sub-collections in the multi-collection.

Returns:
Number of sub-collections in the multi-collection.