Interface Versioned<TVersion extends Comparable<TVersion>>

  • Type Parameters:
    TVersion - the version

    public interface Versioned<TVersion extends Comparable<TVersion>>
    Items implementing this interface are versioned. This allows the index to make sure that the correct items are kept when items are added to the index out of order. by rejecting items with a version number lower than the one stored in the index already.
    • Method Detail

      • version

        TVersion version()
        The version of the item.
        Returns:
        version of the item