@Override public int getProgress() { if (total <= 0) { return 0; } return (int) Math.floor((deleted.floatValue() / (float) total) * 100); }
@Override public Float call() throws Exception { return result.floatValue(); } }, scope);
@Override public Float call() throws Exception { return result.floatValue(); } }, scope);
@Override public Float call() throws Exception { return result.floatValue(); } }, scope);
@Override public int getProgress() { if (total <= 0) { return 0; } return (int) Math.floor((deleted.floatValue() / (float) total) * 100); }
/** Convert the given value to {@code float}. This function is not null-safe. * * @param number a number of {@code AtomicLong} type. * @return the equivalent value to {@code number} of {@code float} type. */ @Pure @Inline(value = "$1.floatValue()") public static float toFloat(AtomicLong number) { return number.floatValue(); }
float expectedWeight = getPolicyInfo().getRouterPolicyWeights() .get(new SubClusterIdInfo(counterEntry.getKey())) / totalActiveWeight; float actualWeight = counterEntry.getValue().floatValue() / numberOfDraws;