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