public final class RegistryQuota extends Object implements Comparable<RegistryQuota>, Serializable
A class which contains the size limits of the system registry. The class holds information for the maximum size and the current size of the system registry.
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RegistryQuota other)
Compares one
RegistryQuota to another. |
boolean |
equals(Object o)
Tests for equality with another
Object . |
int |
getCurrentSize()
Retrieves the current size of the registry in bytes.
|
int |
getMaximumSize()
Retrieves the maximum size allowed for the registry in bytes.
|
int |
hashCode()
Generates a hash code for
this structure. |
String |
toString()
Retrieve a
String representation of this qouta object. |
public int getCurrentSize()
public int getMaximumSize()
public boolean equals(Object o)
public int hashCode()
this
structure.public int compareTo(RegistryQuota other)
RegistryQuota
to another.compareTo
in interface Comparable<RegistryQuota>
other
- The RegistryQuota
to compare with this
.this
is smaller than, equal to
or greater than other
respectively.Copyright © 2011, Yinon Michaeli. All rights reserved.