Class DefaultModificationCountProvider

    • Constructor Detail

      • DefaultModificationCountProvider

        public DefaultModificationCountProvider()
        Creates a new change number sequence.
    • Method Detail

      • getModificationCount

        public long getModificationCount()
        Description copied from interface: ModificationCountProvider
        Gets the current change number. This value is monotonically increasing; a change in value indicates a change to the data structure associated with the provider.
        Specified by:
        getModificationCount in interface ModificationCountProvider
        Returns:
        the current sequence number
      • increment

        public void increment()
        Increment the current change number. Subsequent calls to getModificationCount() will see the new counter value.