Class SpaceUsage

java.lang.Object
com.dropbox.core.v2.users.SpaceUsage

public class SpaceUsage extends Object
Information about a user's space usage and quota.
  • Field Details

    • used

      protected final long used
    • allocation

      @Nonnull protected final SpaceAllocation allocation
  • Constructor Details

    • SpaceUsage

      public SpaceUsage(long used, @Nonnull SpaceAllocation allocation)
      Information about a user's space usage and quota.
      Parameters:
      used - The user's total space usage (bytes).
      allocation - The user's space allocation. Must not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getUsed

      public long getUsed()
      The user's total space usage (bytes).
      Returns:
      value for this field.
    • getAllocation

      @Nonnull public SpaceAllocation getAllocation()
      The user's space allocation.
      Returns:
      value for this field, never null.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.

      The returned String may contain newlines.

      Returns:
      Formatted, multiline String representation of this object