public class QuotaIndex extends Object implements Serializable
QuotaData
item to
help with the Hibernate mapping between quota and
quota type/location/max bytes. This class holds quota type/location
pairs used as keys in the QuotaData.getQuotaValues()
map.Modifier and Type | Field and Description |
---|---|
private int |
location |
private long |
maxBytes |
private QuotaTypeData |
quotaType |
private static long |
serialVersionUID |
Constructor and Description |
---|
QuotaIndex() |
QuotaIndex(QuotaTypeData quotaType,
int location) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Check if this object is equal to another
QuotaIndex
object. |
Long |
findMaxBytes(Set<QuotaIndex> quota)
Find the quota index entry in the given set and return the 'maxBytes' value.
|
int |
getLocation() |
long |
getMaxBytes() |
(package private) QuotaTypeData |
getQuotaType() |
int |
hashCode()
Calculate the hash code for the object.
|
private void |
readObject(ObjectInputStream ois) |
(package private) void |
setLocation(int location) |
void |
setMaxBytes(long maxBytes) |
(package private) void |
setQuotaType(QuotaTypeData quotaType) |
String |
toString() |
private void |
writeObject(ObjectOutputStream ois) |
private static final long serialVersionUID
private int location
private transient QuotaTypeData quotaType
private long maxBytes
QuotaIndex()
public QuotaIndex(QuotaTypeData quotaType, int location)
public int getLocation()
void setLocation(int location)
QuotaTypeData getQuotaType()
void setQuotaType(QuotaTypeData quotaType)
public long getMaxBytes()
public void setMaxBytes(long maxBytes)
public Long findMaxBytes(Set<QuotaIndex> quota)
public boolean equals(Object o)
QuotaIndex
object. They are equal if both have the same quotatype id and location.public int hashCode()
private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream ois) throws IOException
IOException