Class AbstractIndexedPackage<C>
java.lang.Object
ch.nolix.base.net.messaging.AbstractIndexedPackage<C>
- Type Parameters:
C- the type of the content of aAbstractIndexedPackage.
- Direct Known Subclasses:
IndexedPackage
A
AbstractIndexedPackage bundles an index and a content.- Author:
- Silvan Wyss
-
Method Details
-
getStoredContent
- Returns:
- the content of the current
AbstractIndexedPackage.
-
getIndex
public final int getIndex()- Returns:
- the index of the current
AbstractIndexedPackage.
-
hasIndex
public final boolean hasIndex(int index) - Parameters:
index-- Returns:
- true if the current
AbstractIndexedPackagehas the given index, false otherwise
-