Class StorageBucket

java.lang.Object
com.dropbox.core.v2.team.StorageBucket

public class StorageBucket extends Object
Describes the number of users in a specific storage bucket.
  • Field Details

    • bucket

      @Nonnull protected final String bucket
    • users

      protected final long users
  • Constructor Details

    • StorageBucket

      public StorageBucket(@Nonnull String bucket, long users)
      Describes the number of users in a specific storage bucket.
      Parameters:
      bucket - The name of the storage bucket. For example, '1G' is a bucket of users with storage size up to 1 Giga. Must not be null.
      users - The number of people whose storage is in the range of this storage bucket.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getBucket

      @Nonnull public String getBucket()
      The name of the storage bucket. For example, '1G' is a bucket of users with storage size up to 1 Giga.
      Returns:
      value for this field, never null.
    • getUsers

      public long getUsers()
      The number of people whose storage is in the range of this storage bucket.
      Returns:
      value for this field.
    • 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