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 longGB_LIMITstatic StringGB_UNITprotected static longKB_LIMITstatic StringKB_UNITprotected longmaxprotected static longMB_LIMITstatic StringMB_UNITprotected Stringunitstatic StringUNLIMITED_VALUEprotected longvalueprotected floatvalueInUnit
-
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 StringgetPercent()StringgetUnit()longgetValue()floatgetValueInUnit()protected voidinit()
-
-
-
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
-
-