Class AbstractIndexedPackage<C>

java.lang.Object
ch.nolix.base.net.messaging.AbstractIndexedPackage<C>
Type Parameters:
C - the type of the content of a AbstractIndexedPackage.
Direct Known Subclasses:
IndexedPackage

public abstract class AbstractIndexedPackage<C> extends Object
A AbstractIndexedPackage bundles an index and a content.
Author:
Silvan Wyss
  • Method Details

    • getStoredContent

      public final C 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 AbstractIndexedPackage has the given index, false otherwise