Package org.nuxeo.ecm.quota.size
Class QuotaDisplayValue
- java.lang.Object
-
- org.nuxeo.ecm.quota.size.QuotaDisplayValue
-
-
Field Summary
Fields Modifier and Type Field Description protected static long
GB_LIMIT
static String
GB_UNIT
protected static long
KB_LIMIT
static String
KB_UNIT
protected long
max
protected static long
MB_LIMIT
static String
MB_UNIT
protected String
unit
static String
UNLIMITED_VALUE
protected long
value
protected float
valueInUnit
-
Constructor Summary
Constructors Constructor Description QuotaDisplayValue(long value)
QuotaDisplayValue(long value, long max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPercent()
String
getUnit()
long
getValue()
float
getValueInUnit()
protected void
init()
-
-
-
Field Detail
-
KB_LIMIT
protected static final long KB_LIMIT
- See Also:
- Constant Field Values
-
MB_LIMIT
protected static final long MB_LIMIT
- See Also:
- Constant Field Values
-
GB_LIMIT
protected static final long GB_LIMIT
- See Also:
- Constant Field Values
-
GB_UNIT
public static final String GB_UNIT
- See Also:
- Constant Field Values
-
MB_UNIT
public static final String MB_UNIT
- See Also:
- Constant Field Values
-
KB_UNIT
public static final String KB_UNIT
- See Also:
- Constant Field Values
-
UNLIMITED_VALUE
public static final String UNLIMITED_VALUE
- See Also:
- Constant Field Values
-
value
protected final long value
-
valueInUnit
protected float valueInUnit
-
unit
protected String unit
-
max
protected long max
-
-