Package org.nuxeo.ecm.quota.size
Class QuotaDisplayValue
java.lang.Object
org.nuxeo.ecm.quota.size.QuotaDisplayValue
Helper class mainly used for UI display
- Since:
- 5.6
- Author:
- Tiry
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
KB_LIMIT
protected static final long KB_LIMIT- See Also:
-
MB_LIMIT
protected static final long MB_LIMIT- See Also:
-
GB_LIMIT
protected static final long GB_LIMIT- See Also:
-
GB_UNIT
- See Also:
-
MB_UNIT
- See Also:
-
KB_UNIT
- See Also:
-
UNLIMITED_VALUE
- See Also:
-
value
protected final long value -
valueInUnit
protected float valueInUnit -
unit
-
max
protected long max
-
-
Constructor Details
-
QuotaDisplayValue
public QuotaDisplayValue(long value) -
QuotaDisplayValue
public QuotaDisplayValue(long value, long max)
-
-
Method Details
-
init
protected void init() -
getValue
public long getValue() -
getValueInUnit
public float getValueInUnit() -
getUnit
-
getPercent
-