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 a IndexedPackage.

public final class IndexedPackage<C> extends AbstractIndexedPackage<C>
Author:
Silvan Wyss
  • Method Details

    • withIndexAndContent

      public static <T> AbstractIndexedPackage<T> withIndexAndContent(int index, T content)
      Type Parameters:
      T - the type of the given content
      Parameters:
      index -
      content -
      Returns:
      a new IndexedPackage with the given index and content
      Throws:
      RuntimeException - if the given content is null