public class StorageBucket extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
bucket |
protected long |
users |
| Constructor and Description |
|---|
StorageBucket(String bucket,
long users)
Describes the number of users in a specific storage bucket.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getBucket()
The name of the storage bucket.
|
long |
getUsers()
The number of people whose storage is in the range of this storage
bucket.
|
int |
hashCode() |
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final String bucket
protected final long users
public StorageBucket(String bucket, long users)
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.IllegalArgumentException - If any argument does not meet its
preconditions.public String getBucket()
null.public long getUsers()
public String toStringMultiline()
The returned String may contain newlines.