|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.inet.imap.Quota.Resource
public static class Quota.Resource
A quota resource entry.
Constructor Summary | |
---|---|
Quota.Resource(java.lang.String name,
int limit)
Specifies a new resource with the given name and limit. |
Method Summary | |
---|---|
int |
getCurrentUsage()
Returns the current usage of the resource, or -1 if not
known. |
int |
getLimit()
Returns the resource limit. |
java.lang.String |
getName()
Returns the resource name. |
java.lang.String |
toString()
Debugging. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Quota.Resource(java.lang.String name, int limit)
name
- the resource namelimit
- the resource limitMethod Detail |
---|
public java.lang.String getName()
public int getCurrentUsage()
-1
if not
known.
public int getLimit()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |