Code example for AtomicLong

Methods: floatValueget

0
  public long getCount() { 
    return count.get();
  } 
   
  public float getAvg() { 
    if(count.get() == 0) {
      return 0; 
    } 
    return (float)(currentValue.floatValue() / count.floatValue());
  } 
} 
Connect your IDE to all the code out there  Get Codota for Java