com.thinkaurelius.titan.util.datastructures

## Class LongCounter

- java.lang.Object
- - com.thinkaurelius.titan.util.datastructures.LongCounter

- All Implemented Interfaces:
    Serializable

      public class LongCounter
      extends Object
      implements Serializable

  A counter with a long value
  Author:
    Matthias Broecheler (me@matthiasb.com)
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LongCounter()`
    `LongCounter(long initial)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `decrement(long delta)`
    `boolean` | `equals(Object other)`
    `long` | `get()`
    `int` | `hashCode()`
    `void` | `increment(long delta)`
    `void` | `set(long value)`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### LongCounter

          public LongCounter(long initial)

    - #### LongCounter

          public LongCounter()

  - ### Method Detail

    - #### increment

          public void increment(long delta)

    - #### decrement

          public void decrement(long delta)

    - #### set

          public void set(long value)

    - #### get

          public long get()

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object other)

      Overrides:
        `equals` in class `Object`

Copyright © 2012–2014. All rights reserved.