JavaTM 2 Platform
Std. Ed. v1.4.2

Uses of Interface
java.util.Collection

Packages that use Collection
java.awt Contains all of the classes for creating user interfaces and for painting graphics and images. 
java.beans.beancontext Provides classes and interfaces relating to bean context. 
java.security Provides the classes and interfaces for the security framework. 
java.security.cert Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths. 
java.util Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array). 
java.util.jar Provides classes for reading and writing the JAR (Java ARchive) file format, which is based on the standard ZIP file format with an optional manifest file. 
javax.print.attribute.standard Package javax.print.attribute.standard contains classes for specific printing attributes. 
 

Uses of Collection in java.awt
 

Methods in java.awt that return Collection
 Collection RenderingHints.values()
          Returns a Collection view of the values contained in this RenderinHints.
 

Uses of Collection in java.beans.beancontext
 

Subinterfaces of Collection in java.beans.beancontext
 interface BeanContext
           The BeanContext acts a logical hierarchical container for JavaBeans.
 interface BeanContextServices
           The BeanContextServices interface provides a mechanism for a BeanContext to expose generic "services" to the BeanContextChild objects within.
 

Classes in java.beans.beancontext that implement Collection
 class BeanContextServicesSupport
           This helper class provides a utility implementation of the java.beans.beancontext.BeanContextServices interface.
 class BeanContextSupport
          This helper class provides a utility implementation of the java.beans.beancontext.BeanContext interface.
 

Fields in java.beans.beancontext declared as Collection
protected  Collection BeanContextMembershipEvent.children
          The list of children affected by this event notification.
 

Methods in java.beans.beancontext with parameters of type Collection
 boolean BeanContextSupport.containsAll(Collection c)
          Tests to see if all objects in the specified Collection are children of this BeanContext.
 boolean BeanContextSupport.addAll(Collection c)
          add Collection to set of Children (Unsupported) implementations must synchronized on the hierarchy lock and "children" protected field
 boolean BeanContextSupport.removeAll(Collection c)
          remove all specified children (Unsupported) implementations must synchronized on the hierarchy lock and "children" protected field
 boolean BeanContextSupport.retainAll(Collection c)
          retain only specified children (Unsupported) implementations must synchronized on the hierarchy lock and "children" protected field
protected  void BeanContextSupport.serialize(ObjectOutputStream oos, Collection coll)
          Used by writeObject to serialize a Collection.
protected  void BeanContextSupport.deserialize(ObjectInputStream ois, Collection coll)
          used by readObject to deserialize a collection.
 

Constructors in java.beans.beancontext with parameters of type Collection
BeanContextMembershipEvent(BeanContext bc, Collection changes)
          Contruct a BeanContextMembershipEvent
 

Uses of Collection in java.security
 

Methods in java.security that return Collection
 Collection Provider.values()
          Returns an unmodifiable Collection view of the property values contained in this provider.
 

Uses of Collection in java.security.cert
 

Methods in java.security.cert that return Collection
 Collection X509CRLSelector.getIssuerNames()
          Returns a copy of the issuerNames criterion.
 Collection X509CertSelector.getSubjectAlternativeNames()
          Returns a copy of the subjectAlternativeNames criterion.
 Collection X509CertSelector.getPathToNames()
          Returns a copy of the pathToNames criterion.
 Collection CollectionCertStoreParameters.getCollection()
          Returns the Collection from which Certificates and CRLs are retrieved.
abstract  Collection CertStoreSpi.engineGetCertificates(CertSelector selector)
          Returns a Collection of Certificates that match the specified selector.
abstract  Collection CertStoreSpi.engineGetCRLs(CRLSelector selector)
          Returns a Collection of CRLs that match the specified selector.
 Collection CertStore.getCertificates(CertSelector selector)
          Returns a Collection of Certificates that match the specified selector.
 Collection CertStore.getCRLs(CRLSelector selector)
          Returns a Collection of CRLs that match the specified selector.
 Collection CertificateFactory.generateCertificates(InputStream inStream)
          Returns a (possibly empty) collection view of the certificates read from the given input stream inStream.
 Collection CertificateFactory.generateCRLs(InputStream inStream)
          Returns a (possibly empty) collection view of the CRLs read from the given input stream inStream.
abstract  Collection CertificateFactorySpi.engineGenerateCertificates(InputStream inStream)
          Returns a (possibly empty) collection view of the certificates read from the given input stream inStream.
abstract  Collection CertificateFactorySpi.engineGenerateCRLs(InputStream inStream)
          Returns a (possibly empty) collection view of the CRLs read from the given input stream inStream.
 Collection X509Certificate.getSubjectAlternativeNames()
          Gets an immutable collection of subject alternative names from the SubjectAltName extension, (OID = 2.5.29.17).
 Collection X509Certificate.getIssuerAlternativeNames()
          Gets an immutable collection of issuer alternative names from the IssuerAltName extension, (OID = 2.5.29.18).
 

Methods in java.security.cert with parameters of type Collection
abstract  void PKIXCertPathChecker.check(Certificate cert, Collection unresolvedCritExts)
          Performs the check(s) on the specified certificate using its internal state and removes any critical extensions that it processes from the specified collection of OID strings that represent the unresolved critical extensions.
 void X509CRLSelector.setIssuerNames(Collection names)
          Sets the issuerNames criterion.
 void X509CertSelector.setSubjectAlternativeNames(Collection names)
          Sets the subjectAlternativeNames criterion.
 void X509CertSelector.setPathToNames(Collection names)
          Sets the pathToNames criterion.
 

Constructors in java.security.cert with parameters of type Collection
CollectionCertStoreParameters(Collection collection)
          Creates an instance of CollectionCertStoreParameters which will allow certificates and CRLs to be retrieved from the specified Collection.
 

Uses of Collection in java.util
 

Subinterfaces of Collection in java.util
 interface List
          An ordered collection (also known as a sequence).
 interface Set
          A collection that contains no duplicate elements.
 interface SortedSet
          A set that further guarantees that its iterator will traverse the set in ascending element order, sorted according to the natural ordering of its elements (see Comparable), or by a Comparator provided at sorted set creation time.
 

Classes in java.util that implement Collection
 class AbstractCollection
          This class provides a skeletal implementation of the Collection interface, to minimize the effort required to implement this interface.
 class AbstractList
          This class provides a skeletal implementation of the List interface to minimize the effort required to implement this interface backed by a "random access" data store (such as an array).
 class AbstractSequentialList
          This class provides a skeletal implementation of the List interface to minimize the effort required to implement this interface backed by a "sequential access" data store (such as a linked list).
 class AbstractSet
          This class provides a skeletal implementation of the Set interface to minimize the effort required to implement this interface.
 class ArrayList
          Resizable-array implementation of the List interface.
 class HashSet
          This class implements the Set interface, backed by a hash table (actually a HashMap instance).
 class LinkedHashSet
          Hash table and linked list implementation of the Set interface, with predictable iteration order.
 class LinkedList
          Linked list implementation of the List interface.
 class Stack
          The Stack class represents a last-in-first-out (LIFO) stack of objects.
 class TreeSet
          This class implements the Set interface, backed by a TreeMap instance.
 class Vector
          The Vector class implements a growable array of objects.
 

Methods in java.util that return Collection
 Collection IdentityHashMap.values()
          Returns a collection view of the values contained in this map.
 Collection WeakHashMap.values()
          Returns a collection view of the values contained in this map.
 Collection TreeMap.values()
          Returns a collection view of the values contained in this map.
static Collection Collections.unmodifiableCollection(Collection c)
          Returns an unmodifiable view of the specified collection.
static Collection Collections.synchronizedCollection(Collection c)
          Returns a synchronized (thread-safe) collection backed by the specified collection.
 Collection AbstractMap.values()
          Returns a collection view of the values contained in this map.
 Collection HashMap.values()
          Returns a collection view of the values contained in this map.
 Collection Map.values()
          Returns a collection view of the values contained in this map.
 Collection Hashtable.values()
          Returns a Collection view of the values contained in this Hashtable.
 

Methods in java.util with parameters of type Collection
 boolean LinkedList.addAll(Collection c)
          Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator.
 boolean LinkedList.addAll(int index, Collection c)
          Inserts all of the elements in the specified collection into this list, starting at the specified position.
 boolean AbstractSequentialList.addAll(int index, Collection c)
          Inserts all of the elements in in the specified collection into this list at the specified position.
 boolean TreeSet.addAll(Collection c)
          Adds all of the elements in the specified collection to this set.
static Object Collections.min(Collection coll)
          Returns the minimum element of the given collection, according to the natural ordering of its elements.
static Object Collections.min(Collection coll, Comparator comp)
          Returns the minimum element of the given collection, according to the order induced by the specified comparator.
static Object Collections.max(Collection coll)
          Returns the maximum element of the given collection, according to the natural ordering of its elements.
static Object Collections.max(Collection coll, Comparator comp)
          Returns the maximum element of the given collection, according to the order induced by the specified comparator.
static Collection Collections.unmodifiableCollection(Collection c)
          Returns an unmodifiable view of the specified collection.
static Collection Collections.synchronizedCollection(Collection c)
          Returns a synchronized (thread-safe) collection backed by the specified collection.
static Enumeration Collections.enumeration(Collection c)
          Returns an enumeration over the specified collection.
 boolean AbstractSet.removeAll(Collection c)
          Removes from this set all of its elements that are contained in the specified collection (optional operation).
 boolean ArrayList.addAll(Collection c)
          Appends all of the elements in the specified Collection to the end of this list, in the order that they are returned by the specified Collection's Iterator.
 boolean ArrayList.addAll(int index, Collection c)
          Inserts all of the elements in the specified Collection into this list, starting at the specified position.
 boolean List.containsAll(Collection c)
          Returns true if this list contains all of the elements of the specified collection.
 boolean List.addAll(Collection c)
          Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation).
 boolean List.addAll(int index, Collection c)
          Inserts all of the elements in the specified collection into this list at the specified position (optional operation).
 boolean List.removeAll(Collection c)
          Removes from this list all the elements that are contained in the specified collection (optional operation).
 boolean List.retainAll(Collection c)
          Retains only the elements in this list that are contained in the specified collection (optional operation).
 boolean AbstractCollection.containsAll(Collection c)
          Returns true if this collection contains all of the elements in the specified collection.
 boolean AbstractCollection.addAll(Collection c)
          Adds all of the elements in the specified collection to this collection (optional operation).
 boolean AbstractCollection.removeAll(Collection c)
          Removes from this collection all of its elements that are contained in the specified collection (optional operation).
 boolean AbstractCollection.retainAll(Collection c)
          Retains only the elements in this collection that are contained in the specified collection (optional operation).
 boolean AbstractList.addAll(int index, Collection c)
          Inserts all of the elements in the specified collection into this list at the specified position (optional operation).
 boolean Vector.containsAll(Collection c)
          Returns true if this Vector contains all of the elements in the specified Collection.
 boolean Vector.addAll(Collection c)
          Appends all of the elements in the specified Collection to the end of this Vector, in the order that they are returned by the specified Collection's Iterator.
 boolean Vector.removeAll(Collection c)
          Removes from this Vector all of its elements that are contained in the specified Collection.
 boolean Vector.retainAll(Collection c)
          Retains only the elements in this Vector that are contained in the specified Collection.
 boolean Vector.addAll(int index, Collection c)
          Inserts all of the elements in in the specified Collection into this Vector at the specified position.
 boolean Collection.containsAll(Collection c)
          Returns true if this collection contains all of the elements in the specified collection.
 boolean Collection.addAll(Collection c)
          Adds all of the elements in the specified collection to this collection (optional operation).
 boolean Collection.removeAll(Collection c)
          Removes all this collection's elements that are also contained in the specified collection (optional operation).
 boolean Collection.retainAll(Collection c)
          Retains only the elements in this collection that are contained in the specified collection (optional operation).
 boolean Set.containsAll(Collection c)
          Returns true if this set contains all of the elements of the specified collection.
 boolean Set.addAll(Collection c)
          Adds all of the elements in the specified collection to this set if they're not already present (optional operation).
 boolean Set.retainAll(Collection c)
          Retains only the elements in this set that are contained in the specified collection (optional operation).
 boolean Set.removeAll(Collection c)
          Removes from this set all of its elements that are contained in the specified collection (optional operation).
 

Constructors in java.util with parameters of type Collection
LinkedList(Collection c)
          Constructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator.
TreeSet(Collection c)
          Constructs a new set containing the elements in the specified collection, sorted according to the elements' natural order.
LinkedHashSet(Collection c)
          Constructs a new linked hash set with the same elements as the specified collection.
HashSet(Collection c)
          Constructs a new set containing the elements in the specified collection.
ArrayList(Collection c)
          Constructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator.
Vector(Collection c)
          Constructs a vector containing the elements of the specified collection, in the order they are returned by the collection's iterator.
 

Uses of Collection in java.util.jar
 

Methods in java.util.jar that return Collection
 Collection Attributes.values()
          Returns a Collection view of the attribute values contained in this Map.
 

Uses of Collection in javax.print.attribute.standard
 

Classes in javax.print.attribute.standard that implement Collection
 class JobStateReasons
          Class JobStateReasons is a printing attribute class, a set of enumeration values, that provides additional information about the job's current state, i.e., information that augments the value of the job's JobState attribute.
 

Constructors in javax.print.attribute.standard with parameters of type Collection
JobStateReasons(Collection collection)
          Construct a new job state reasons attribute that contains the same JobStateReason objects as the given collection.
 


JavaTM 2 Platform
Std. Ed. v1.4.2

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 2003, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.