Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

com.arcle.rmt.j2se.util.MoreCollections Class Reference

Provides generic utility methods to operate on Collection objects and other container classes. More...

List of all members.

Static Public Member Functions

boolean visitCollection (Collection c, CollectionVisitor v)
 Visits each element in a collection.


Private Member Functions

 MoreCollections ()


Detailed Description

Provides generic utility methods to operate on Collection objects and other container classes.

This class is meant to supplement those methods found in the Collections class.

Author:
Sasmito Adibowo
Version:
Id
MoreCollections.java,v 1.6 2003/05/15 19:43:56 adib Exp

Definition at line 70 of file MoreCollections.java.


Constructor & Destructor Documentation

com.arcle.rmt.j2se.util.MoreCollections.MoreCollections  )  [private]
 

Definition at line 72 of file MoreCollections.java.


Member Function Documentation

boolean com.arcle.rmt.j2se.util.MoreCollections.visitCollection Collection  c,
CollectionVisitor  v
[static]
 

Visits each element in a collection.

The order visited is as returned by the collection's iterator. The method visitCollection() in v is called on each element in c. visitCollection() may terminate the iteration at any time by returning false.

Parameters:
c The collection to visit.
v The visitor callback object.
Returns:
true if all elements were visited, false if v requests an early termination.
See also:
java#util#Iterator

Definition at line 88 of file MoreCollections.java.

References com.arcle.rmt.j2se.util.CollectionVisitor.visitCollection().


The documentation for this class was generated from the following file:
Generated on Fri Jun 18 19:55:00 2004 for Arcle Rambutan by doxygen 1.3.5