Code example for AtomicLong

Methods: get

0
  public Object getKey() {
    return key;
  } 
 
  public long getValue() { 
    return value.get();
  } 
 
  public void increment(long value) {
    this.value.addAndGet(value);
  } 
 
  @Override 
  public boolean equals(Object object) {
    if ((this == object)) {
      return true; 
    } 
    if (!(object instanceof StatisticEntry)) {
      return false; 
    } 
    StatisticEntry entry = (StatisticEntry) object;