Cisco Systems, Inc.

com.pcube.apps.engage.policy
Class QuotaBucketsArray

java.lang.Object
  extended by com.pcube.apps.engage.policy.QuotaBucketsArray
All Implemented Interfaces:
Formattable

public class QuotaBucketsArray
extends java.lang.Object
implements Formattable

The QuotaBucketsArray is a simple read-only collection of QuotaBuckets. There is one instance QuotaBucketsArray in the system.

Author:
rafis

Method Summary
 java.util.List asList()
           
 void fromStream(java.io.BufferedReader in, Formatter f)
          Method fromStream
 int getBucketsCount()
           
 QuotaBucketInterface getQuotaBucketById(int id)
          return an instance of a QuotaBucket with the specified id.
 java.util.Iterator iterator()
           
 java.util.ListIterator listIterator()
           
 int size()
           
 void toStream(java.io.PrintStream out, Formatter f)
          Method toStream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBucketsCount

public int getBucketsCount()
Returns:
number of quota buckets

listIterator

public java.util.ListIterator listIterator()
Returns:

iterator

public java.util.Iterator iterator()
Returns:

getQuotaBucketById

public QuotaBucketInterface getQuotaBucketById(int id)
return an instance of a QuotaBucket with the specified id. return null if such QuotaBucket does not exist.

Parameters:
id -
Returns:
QuotaBucket

toStream

public void toStream(java.io.PrintStream out,
                     Formatter f)
Description copied from interface: Formattable
Method toStream

Specified by:
toStream in interface Formattable
See Also:
Formattable.toStream(java.io.PrintStream, com.pcube.apps.engage.common.Formatter)

fromStream

public void fromStream(java.io.BufferedReader in,
                       Formatter f)
                throws ImportExportException
Description copied from interface: Formattable
Method fromStream

Specified by:
fromStream in interface Formattable
Throws:
ImportExportException
See Also:
Formattable.fromStream(java.io.BufferedReader, com.pcube.apps.engage.common.Formatter)

size

public int size()

asList

public java.util.List asList()

Cisco Systems, Inc.

Copyright © 2013 Cisco Systems, Inc. Confidential.