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
FieldsModifier and TypeFieldDescriptionprotected final ByteSizeprotected static final longDeprecated, for removal: This API element is subject to removal in a future version.since 2025.11static final StringDeprecated, for removal: This API element is subject to removal in a future version.since 2025.11protected static final longDeprecated, for removal: This API element is subject to removal in a future version.since 2025.11static final StringDeprecated, for removal: This API element is subject to removal in a future version.since 2025.11protected static final longDeprecated, for removal: This API element is subject to removal in a future version.since 2025.11static final StringDeprecated, for removal: This API element is subject to removal in a future version.since 2025.11static final String -
Constructor Summary
ConstructorsConstructorDescriptionQuotaDisplayValue(long value) QuotaDisplayValue(long value, long max) Deprecated, for removal: This API element is subject to removal in a future version.since 2025.11, useQuotaDisplayValue(long)insteadQuotaDisplayValue(ByteSize byteSize) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.since 2025.11, not usedgetUnit()Deprecated, for removal: This API element is subject to removal in a future version.since 2025.11, usegetByteSize()insteadlonggetValue()floatDeprecated, for removal: This API element is subject to removal in a future version.since 2025.11, usegetByteSize()instead
-
Field Details
-
KB_LIMIT
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.11- See Also:
-
MB_LIMIT
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.11- See Also:
-
GB_LIMIT
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.11- See Also:
-
GB_UNIT
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.11- See Also:
-
MB_UNIT
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.11- See Also:
-
KB_UNIT
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.11- See Also:
-
UNLIMITED_VALUE
- See Also:
-
byteSize
-
-
Constructor Details
-
QuotaDisplayValue
-
QuotaDisplayValue
public QuotaDisplayValue(long value) - Parameters:
value- the quota size inKiBunit
-
QuotaDisplayValue
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.11, useQuotaDisplayValue(long)instead
-
-
Method Details
-
getByteSize
- Since:
- 2025.11
-
getValue
public long getValue()- Returns:
- the current quota value in
KiB
-
getValueInUnit
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.11, usegetByteSize()instead -
getUnit
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.11, usegetByteSize()instead -
format
- Since:
- 2025.11
-
getPercent
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.11, not used
-