Class QuotaDisplayValue

java.lang.Object
org.nuxeo.ecm.quota.size.QuotaDisplayValue

public class QuotaDisplayValue extends Object
Helper class mainly used for UI display
Since:
5.6
Author:
Tiry
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final ByteSize
     
    protected static final long
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 2025.11
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 2025.11
    protected static final long
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 2025.11
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 2025.11
    protected static final long
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 2025.11
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 2025.11
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    QuotaDisplayValue(long value)
     
    QuotaDisplayValue(long value, long max)
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 2025.11, use QuotaDisplayValue(long) instead
     
  • Method Summary

    Modifier and Type
    Method
    Description
    format(Locale locale)
     
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 2025.11, not used
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 2025.11, use getByteSize() instead
    long
     
    float
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 2025.11, use getByteSize() instead

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • QuotaDisplayValue

      public QuotaDisplayValue(ByteSize byteSize)
    • QuotaDisplayValue

      public QuotaDisplayValue(long value)
      Parameters:
      value - the quota size in KiB unit
    • QuotaDisplayValue

      @Deprecated(since="2025.11", forRemoval=true) public QuotaDisplayValue(long value, long max)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 2025.11, use QuotaDisplayValue(long) instead
  • Method Details

    • getByteSize

      public ByteSize getByteSize()
      Since:
      2025.11
    • getValue

      public long getValue()
      Returns:
      the current quota value in KiB
    • getValueInUnit

      @Deprecated(since="2025.11", forRemoval=true) public float getValueInUnit()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 2025.11, use getByteSize() instead
    • getUnit

      @Deprecated(since="2025.11", forRemoval=true) public String getUnit()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 2025.11, use getByteSize() instead
    • format

      public String format(Locale locale)
      Since:
      2025.11
    • getPercent

      @Deprecated(since="2025.11", forRemoval=true) public String getPercent()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 2025.11, not used