Class IndexedPackage<C>
java.lang.Object
ch.nolix.base.net.messaging.AbstractIndexedPackage<C>
ch.nolix.base.net.messaging.IndexedPackage<C>
- Type Parameters:
C- the type of the content of aIndexedPackage.
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> AbstractIndexedPackage<T> withIndexAndContent(int index, T content) Methods inherited from class AbstractIndexedPackage
getIndex, getStoredContent, hasIndex
-
Method Details
-
withIndexAndContent
- Type Parameters:
T- the type of the given content- Parameters:
index-content-- Returns:
- a new
IndexedPackagewith the given index and content - Throws:
RuntimeException- if the given content is null
-