@Test void quotaRatioShouldThrowWhenQuotaSizeIsNull() { assertThatThrownBy(() -> QuotaRatio.from(null, QUOTA_COUNT)) .isInstanceOf(NullPointerException.class); }
public static QuotaRatio from(Quota<QuotaSizeLimit, QuotaSizeUsage> quotaSize, Quota<QuotaCountLimit, QuotaCountUsage> quotaCount) { return new QuotaRatio(quotaSize, quotaCount); }
QuotaRatio { public static QuotaRatio from(Quota<QuotaSizeLimit, QuotaSizeUsage> quotaSize, Quota<QuotaCountLimit, QuotaCountUsage> quotaCount) { return new QuotaRatio(quotaSize, quotaCount); } }
QuotaRatio { public static QuotaRatio from(Quota<QuotaSizeLimit, QuotaSizeUsage> quotaSize, Quota<QuotaCountLimit, QuotaCountUsage> quotaCount) { return new QuotaRatio(quotaSize, quotaCount); } private  QuotaRatio(Quota<QuotaSizeLimit, QuotaSizeUsage> quotaSize, Quota<QuotaCountLimit, QuotaCountUsage> quotaCount); }
QuotaRatio { public static QuotaRatio from(Quota<QuotaSizeLimit, QuotaSizeUsage> quotaSize, Quota<QuotaCountLimit, QuotaCountUsage> quotaCount) { return new QuotaRatio(quotaSize, quotaCount); } private  QuotaRatio(Quota<QuotaSizeLimit, QuotaSizeUsage> quotaSize, Quota<QuotaCountLimit, QuotaCountUsage> quotaCount); static QuotaRatio from(Quota<QuotaSizeLimit, QuotaSizeUsage> quotaSize, Quota<QuotaCountLimit, QuotaCountUsage> quotaCount); Quota<QuotaSizeLimit, QuotaSizeUsage> getQuotaSize(); Quota<QuotaCountLimit, QuotaCountUsage> getQuotaCount(); double max(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString(); }
QuotaRatio { public static QuotaRatio from(Quota<QuotaSizeLimit, QuotaSizeUsage> quotaSize, Quota<QuotaCountLimit, QuotaCountUsage> quotaCount) { return new QuotaRatio(quotaSize, quotaCount); } private  QuotaRatio(Quota<QuotaSizeLimit, QuotaSizeUsage> quotaSize, Quota<QuotaCountLimit, QuotaCountUsage> quotaCount); static QuotaRatio from(Quota<QuotaSizeLimit, QuotaSizeUsage> quotaSize, Quota<QuotaCountLimit, QuotaCountUsage> quotaCount); Quota<QuotaSizeLimit, QuotaSizeUsage> getQuotaSize(); Quota<QuotaCountLimit, QuotaCountUsage> getQuotaCount(); double max(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString();  }