public class QuotaDisplayValue extends Object
Modifier and Type | Field and 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 and Description |
---|
QuotaDisplayValue(long value) |
QuotaDisplayValue(long value,
long max) |
Modifier and Type | Method and Description |
---|---|
String |
getPercent() |
String |
getUnit() |
long |
getValue() |
float |
getValueInUnit() |
protected void |
init() |
protected static final long KB_LIMIT
protected static final long MB_LIMIT
protected static final long GB_LIMIT
public static final String GB_UNIT
public static final String MB_UNIT
public static final String KB_UNIT
public static final String UNLIMITED_VALUE
protected final long value
protected float valueInUnit
protected long max
public QuotaDisplayValue(long value)
public QuotaDisplayValue(long value, long max)
protected void init()
public long getValue()
public float getValueInUnit()
public String getPercent()
Copyright © 2018 Nuxeo. All rights reserved.