@Test public void getQuotaOccupationRatioAsPercentShouldReturnIntRepresentationOfThreshold() { assertThat(_75.getQuotaOccupationRatioAsPercent()) .isEqualTo(75); }
public int getQuotaOccupationRatioAsPercent() { return Double.valueOf(quotaOccupationRatio * 100).intValue(); }
QuotaThreshold implements Comparable<QuotaThreshold> { public int getQuotaOccupationRatioAsPercent() { return Double.valueOf(quotaOccupationRatio * 100).intValue(); } }
QuotaThreshold implements Comparable<QuotaThreshold> { public int getQuotaOccupationRatioAsPercent() { return Double.valueOf(quotaOccupationRatio * 100).intValue(); } QuotaThreshold(double quotaOccupationRatio); }
QuotaThreshold implements Comparable<QuotaThreshold> { public int getQuotaOccupationRatioAsPercent() { return Double.valueOf(quotaOccupationRatio * 100).intValue(); } QuotaThreshold(double quotaOccupationRatio); double getQuotaOccupationRatio(); int getQuotaOccupationRatioAsPercent(); boolean isExceeded(Quota<?, ?> quota); Optional<QuotaThreshold> nonZero(); @Override int compareTo(QuotaThreshold o); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString(); }
QuotaThreshold implements Comparable<QuotaThreshold> { public int getQuotaOccupationRatioAsPercent() { return Double.valueOf(quotaOccupationRatio * 100).intValue(); } QuotaThreshold(double quotaOccupationRatio); double getQuotaOccupationRatio(); int getQuotaOccupationRatioAsPercent(); boolean isExceeded(Quota<?, ?> quota); Optional<QuotaThreshold> nonZero(); @Override int compareTo(QuotaThreshold o); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString(); static final QuotaThreshold ZERO; }