Class Counter.AtomicCounter

java.lang.Object
org.apache.lucene.util.Counter
org.apache.lucene.util.Counter.AtomicCounter
Enclosing class:
Counter

private static final class Counter.AtomicCounter extends Counter
  • Field Details

  • Constructor Details

    • AtomicCounter

      private AtomicCounter()
  • Method Details

    • addAndGet

      public long addAndGet(long delta)
      Description copied from class: Counter
      Adds the given delta to the counters current value
      Specified by:
      addAndGet in class Counter
      Parameters:
      delta - the delta to add
      Returns:
      the counters updated value
    • get

      public long get()
      Description copied from class: Counter
      Returns the counters current value
      Specified by:
      get in class Counter
      Returns:
      the counters current value