List of usage examples for com.google.common.primitives Longs ensureCapacity
public static long[] ensureCapacity(long[] array, int minLength, int padding)
From source file:com.lithium.flow.util.Measure.java
public synchronized void addDone(long value) { int bin = getBin(System.currentTimeMillis()); bins = Longs.ensureCapacity(bins, bin + 1, 1024); bins[bin] += value;/*from w ww.j a v a2s . c o m*/ done += value; }