gnu.inet.imap
Class Quota.Resource

java.lang.Object
  extended by gnu.inet.imap.Quota.Resource
Enclosing class:
Quota

public static class Quota.Resource
extends java.lang.Object

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

Quota.Resource

public Quota.Resource(java.lang.String name,
                      int limit)
Specifies a new resource with the given name and limit.

Parameters:
name - the resource name
limit - the resource limit
Method Detail

getName

public java.lang.String getName()
Returns the resource name.


getCurrentUsage

public int getCurrentUsage()
Returns the current usage of the resource, or -1 if not known.


getLimit

public int getLimit()
Returns the resource limit.


toString

public java.lang.String toString()
Debugging.

Overrides:
toString in class java.lang.Object


© Copyright 2003 The Free Software Foundation, all rights reserved