Class Counter.SerialCounter

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

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

    • count

      private long count
  • Constructor Details

    • SerialCounter

      private SerialCounter()
  • 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