public final class Quota
extends java.lang.Object
Constructor and Description |
---|
Quota(double bound,
boolean upper) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptable(double value) |
double |
bound() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isUpperBound() |
static Quota |
lowerBound(double lowerBound) |
java.lang.String |
toString() |
static Quota |
upperBound(double upperBound) |
public static Quota upperBound(double upperBound)
public static Quota lowerBound(double lowerBound)
public boolean isUpperBound()
public double bound()
public boolean acceptable(double value)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object