Class ConstantEntryList


  • class ConstantEntryList
    extends java.lang.Object
    A list of objects with an associated timestamp. The list is optimized for the case of only a single value.
    • Constructor Detail

      • ConstantEntryList

        ConstantEntryList​(java.lang.Object firstValue,
                          long timestamp,
                          IPoolFactory<?> factory)
    • Method Detail

      • add

        void add​(java.lang.Object value,
                 long timestamp)
      • sort

        void sort()
      • touchAll

        void touchAll​(long objectIdOfThisEntry)
      • getFirstObjectAfter

        java.lang.Object getFirstObjectAfter​(long objectIdOfThisEntry,
                                             long timestamp)
        Returns the value associated with the smallest timestamp larger than or equals to timestamp.
        Parameters:
        objectIdOfThisEntry - The object id of all objects in this entry list
        timestamp -
        Returns: