Uses of Interface
java.util.Collection
Packages that useCollection
Package
Description
This package defines JDI events and event processing.
This package contains the JDK's extension to the standard implementation of the
java.lang.management API and also defines the management interface for some other components of the platform.Provides a simple high-level Http server API, which can be used to build embedded HTTP servers.
Contains all of the classes for creating user interfaces and for painting graphics and images.
Provides classes and interfaces relating to bean context.
Classes to support module descriptors and creating configurations of modules by means of resolution and service binding.
Provides the classes and interfaces for the security framework.
Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths.
Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.
Utility classes commonly useful in concurrent programming.
Interfaces and classes providing a framework for locking and waiting for conditions that is distinct from built-in synchronization and monitors.
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.
Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.
Provides the core classes for the Java Management Extensions.
Provides the open data types and Open MBean descriptor classes.
Provides the definition of the Relation Service.
Provides classes for the secure socket package.
Package
javax.print.attribute.standard contains classes for specific printing attributes.The scripting API consists of interfaces and classes that defineJava Scripting Engines and providesa framework for their use in Java applications.
Standard interfaces and base classes for JDBC
RowSet implementations.Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
Provides interfaces for tools which can be invoked from a program, for example, compilers.
Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL), which interactively evaluate "snippets" of Java programming language code.
Uses ofCollection incom.sun.jdi.event
Subinterfaces ofCollection incom.sun.jdi.eventModifier and TypeInterfaceDescriptioninterfaceSeveralEventobjects may be created at a given time by the targetVirtualMachine.Uses ofCollection incom.sun.management
Methods incom.sun.management that returnCollectionUses ofCollection incom.sun.net.httpserver
Methods incom.sun.net.httpserver that returnCollectionUses ofCollection injava.awt
Methods injava.awt that returnCollectionModifier and TypeMethodDescriptionRenderingHints.values()Returns aCollectionview of the values contained in thisRenderingHints.Uses ofCollection injava.beans.beancontext
Subinterfaces ofCollection injava.beans.beancontextModifier and TypeInterfaceDescriptioninterfaceThe BeanContext acts a logical hierarchical container for JavaBeans.interfaceThe BeanContextServices interface provides a mechanism for a BeanContext to expose generic "services" to the BeanContextChild objects within.Classes injava.beans.beancontext that implementCollectionModifier and TypeClassDescriptionclassThis helper class provides a utility implementation of the java.beans.beancontext.BeanContextServices interface.classThis helper class provides a utility implementation of the java.beans.beancontext.BeanContext interface.Fields injava.beans.beancontext declared asCollectionModifier and TypeFieldDescriptionprotectedCollectionBeanContextMembershipEvent.childrenThe list of children affected by this event notification.Methods injava.beans.beancontext with parameters of typeCollectionModifier and TypeMethodDescriptionbooleanBeanContextSupport.addAll(Collection c) add Collection to set of Children (Unsupported) implementations must synchronized on the hierarchy lock and "children" protected fieldbooleanBeanContextSupport.containsAll(Collection c) Tests to see if all objects in the specifiedCollectionare children of thisBeanContext.protected final voidBeanContextSupport.deserialize(ObjectInputStream ois,Collection coll) used by readObject to deserialize a collection.booleanBeanContextSupport.removeAll(Collection c) remove all specified children (Unsupported) implementations must synchronized on the hierarchy lock and "children" protected fieldbooleanBeanContextSupport.retainAll(Collection c) retain only specified children (Unsupported) implementations must synchronized on the hierarchy lock and "children" protected fieldprotected final voidBeanContextSupport.serialize(ObjectOutputStream oos,Collection<?> coll) Used by writeObject to serialize a Collection.Constructors injava.beans.beancontext with parameters of typeCollectionModifierConstructorDescriptionBeanContextMembershipEvent(BeanContext bc,Collection changes) Contruct a BeanContextMembershipEventUses ofCollection injava.lang.module
Methods injava.lang.module with parameters of typeCollectionModifier and TypeMethodDescriptionConfiguration.resolve(ModuleFinder before,ModuleFinder after,Collection<String> roots) Resolves a collection of root modules, with this configuration as its parent, to create a new configuration.staticConfigurationConfiguration.resolve(ModuleFinder before,List<Configuration> parents,ModuleFinder after,Collection<String> roots) Resolves a collection of root modules to create a configuration.Configuration.resolveAndBind(ModuleFinder before,ModuleFinder after,Collection<String> roots) Resolves a collection of root modules, with service binding, and with this configuration as its parent, to create a new configuration.staticConfigurationConfiguration.resolveAndBind(ModuleFinder before,List<Configuration> parents,ModuleFinder after,Collection<String> roots) Resolves a collection of root modules, with service binding, to create configuration.Uses ofCollection injava.security
Methods injava.security that returnCollectionModifier and TypeMethodDescriptionProvider.values()Returns an unmodifiable Collection view of the property values contained in this provider.Uses ofCollection injava.security.cert
Methods injava.security.cert that returnCollectionModifier and TypeMethodDescriptionabstractCollection<? extendsCertificate>CertificateFactorySpi.engineGenerateCertificates(InputStream inStream) Returns a (possibly empty) collection view of the certificates read from the given input streaminStream.abstractCollection<? extendsCRL>CertificateFactorySpi.engineGenerateCRLs(InputStream inStream) Returns a (possibly empty) collection view of the CRLs read from the given input streaminStream.abstractCollection<? extendsCertificate>CertStoreSpi.engineGetCertificates(CertSelector selector) Returns aCollectionofCertificates that match the specified selector.abstractCollection<? extendsCRL>CertStoreSpi.engineGetCRLs(CRLSelector selector) Returns aCollectionofCRLs that match the specified selector.finalCollection<? extendsCertificate>CertificateFactory.generateCertificates(InputStream inStream) Returns a (possibly empty) collection view of the certificates read from the given input streaminStream.finalCollection<? extendsCRL>CertificateFactory.generateCRLs(InputStream inStream) Returns a (possibly empty) collection view of the CRLs read from the given input streaminStream.finalCollection<? extendsCertificate>CertStore.getCertificates(CertSelector selector) Returns aCollectionofCertificates that match the specified selector.Collection<?>CollectionCertStoreParameters.getCollection()Returns theCollectionfrom whichCertificates andCRLs are retrieved.finalCollection<? extendsCRL>CertStore.getCRLs(CRLSelector selector) Returns aCollectionofCRLs that match the specified selector.Collection<List<?>>X509Certificate.getIssuerAlternativeNames()Gets an immutable collection of issuer alternative names from theIssuerAltNameextension, (OID = 2.5.29.18).X509CRLSelector.getIssuerNames()Returns a copy of the issuerNames criterion.X509CRLSelector.getIssuers()Returns the issuerNames criterion.Collection<List<?>>X509CertSelector.getPathToNames()Returns a copy of the pathToNames criterion.Collection<List<?>>X509Certificate.getSubjectAlternativeNames()Gets an immutable collection of subject alternative names from theSubjectAltNameextension, (OID = 2.5.29.17).Collection<List<?>>X509CertSelector.getSubjectAlternativeNames()Returns a copy of the subjectAlternativeNames criterion.Methods injava.security.cert with parameters of typeCollectionModifier and TypeMethodDescriptionabstract voidPKIXCertPathChecker.check(Certificate cert,Collection<String> 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.voidX509CRLSelector.setIssuerNames(Collection<?> names) Note: useX509CRLSelector.setIssuers(Collection) instead or only specify the byte array form of distinguished names when using this method.voidX509CRLSelector.setIssuers(Collection<X500Principal> issuers) Sets the issuerNames criterion.voidX509CertSelector.setPathToNames(Collection<List<?>> names) Sets the pathToNames criterion.voidX509CertSelector.setSubjectAlternativeNames(Collection<List<?>> names) Sets the subjectAlternativeNames criterion.Constructors injava.security.cert with parameters of typeCollectionModifierConstructorDescriptionCollectionCertStoreParameters(Collection<?> collection) Creates an instance ofCollectionCertStoreParameterswhich will allow certificates and CRLs to be retrieved from the specifiedCollection.Uses ofCollection injava.util
Subinterfaces ofCollection injava.utilModifier and TypeInterfaceDescriptioninterfaceDeque<E>A linear collection that supports element insertion and removal at both ends.interfaceList<E>An ordered collection (also known as asequence).interfaceNavigableSet<E>ASortedSetextended with navigation methods reporting closest matches for given search targets.interfaceQueue<E>A collection designed for holding elements prior to processing.interfaceSet<E>A collection that contains no duplicate elements.interfaceSortedSet<E>ASetthat further provides atotal ordering on its elements.Classes injava.util that implementCollectionModifier and TypeClassDescriptionclassThis class provides a skeletal implementation of theCollectioninterface, to minimize the effort required to implement this interface.classAbstractList<E>This class provides a skeletal implementation of theListinterface to minimize the effort required to implement this interface backed by a "random access" data store (such as an array).classThis class provides skeletal implementations of someQueueoperations.classThis class provides a skeletal implementation of theListinterface to minimize the effort required to implement this interface backed by a "sequential access" data store (such as a linked list).classAbstractSet<E>This class provides a skeletal implementation of theSetinterface to minimize the effort required to implement this interface.classArrayDeque<E>Resizable-array implementation of theDequeinterface.classArrayList<E>Resizable-array implementation of theListinterface.classA specializedSetimplementation for use with enum types.classHashSet<E>This class implements theSetinterface, backed by a hash table (actually aHashMapinstance).classHash table and linked list implementation of theSetinterface, with predictable iteration order.classLinkedList<E>Doubly-linked list implementation of theListandDequeinterfaces.classAn unbounded priorityqueue based on a priority heap.classStack<E>TheStackclass represents a last-in-first-out (LIFO) stack of objects.classTreeSet<E>ANavigableSetimplementation based on aTreeMap.classVector<E>TheVectorclass implements a growable array of objects.Methods injava.util that returnCollectionModifier and TypeMethodDescriptionstatic <E> Collection<E>Collections.checkedCollection(Collection<E> c,Class<E> type) Returns a dynamically typesafe view of the specified collection.static <T> Collection<T>Collections.synchronizedCollection(Collection<T> c) Returns a synchronized (thread-safe) collection backed by the specified collection.static <T> Collection<T>Collections.unmodifiableCollection(Collection<? extends T> c) Returns anunmodifiable view of the specified collection.AbstractMap.values()Returns aCollectionview of the values contained in this map.EnumMap.values()Returns aCollectionview of the values contained in this map.HashMap.values()Returns aCollectionview of the values contained in this map.Hashtable.values()Returns aCollectionview of the values contained in this map.IdentityHashMap.values()Returns aCollectionview of the values contained in this map.LinkedHashMap.values()Returns aCollectionview of the values contained in this map.Map.values()Returns aCollectionview of the values contained in this map.SortedMap.values()Returns aCollectionview of the values contained in this map.TreeMap.values()Returns aCollectionview of the values contained in this map.WeakHashMap.values()Returns aCollectionview of the values contained in this map.Methods injava.util with parameters of typeCollectionModifier and TypeMethodDescriptionbooleanAbstractCollection.addAll(Collection<? extendsE> c) Adds all of the elements in the specified collection to this collection (optional operation).booleanAbstractList.addAll(int index,Collection<? extendsE> c) Inserts all of the elements in the specified collection into this list at the specified position (optional operation).booleanAbstractQueue.addAll(Collection<? extendsE> c) Adds all of the elements in the specified collection to this queue.booleanAbstractSequentialList.addAll(int index,Collection<? extendsE> c) Inserts all of the elements in the specified collection into this list at the specified position (optional operation).booleanArrayDeque.addAll(Collection<? extendsE> c) Adds all of the elements in the specified collection at the end of this deque, as if by callingArrayDeque.addLast(E)on each one, in the order that they are returned by the collection's iterator.booleanArrayList.addAll(int index,Collection<? extendsE> c) Inserts all of the elements in the specified collection into this list, starting at the specified position.booleanArrayList.addAll(Collection<? extendsE> 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.booleanCollection.addAll(Collection<? extendsE> c) Adds all of the elements in the specified collection to this collection (optional operation).static <T> booleanCollections.addAll(Collection<? super T> c, T... elements) Adds all of the specified elements to the specified collection.booleanDeque.addAll(Collection<? extendsE> c) Adds all of the elements in the specified collection at the end of this deque, as if by callingDeque.addLast(E)on each one, in the order that they are returned by the collection's iterator.booleanLinkedList.addAll(int index,Collection<? extendsE> c) Inserts all of the elements in the specified collection into this list, starting at the specified position.booleanLinkedList.addAll(Collection<? extendsE> 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.booleanList.addAll(int index,Collection<? extendsE> c) Inserts all of the elements in the specified collection into this list at the specified position (optional operation).booleanList.addAll(Collection<? extendsE> 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).booleanSet.addAll(Collection<? extendsE> c) Adds all of the elements in the specified collection to this set if they're not already present (optional operation).booleanTreeSet.addAll(Collection<? extendsE> c) Adds all of the elements in the specified collection to this set.booleanVector.addAll(int index,Collection<? extendsE> c) Inserts all of the elements in the specified Collection into this Vector at the specified position.booleanVector.addAll(Collection<? extendsE> 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.static <E> Collection<E>Collections.checkedCollection(Collection<E> c,Class<E> type) Returns a dynamically typesafe view of the specified collection.booleanAbstractCollection.containsAll(Collection<?> c) Returnstrueif this collection contains all of the elements in the specified collection.booleanCollection.containsAll(Collection<?> c) Returnstrueif this collection contains all of the elements in the specified collection.booleanList.containsAll(Collection<?> c) Returnstrueif this list contains all of the elements of the specified collection.booleanSet.containsAll(Collection<?> c) Returnstrueif this set contains all of the elements of the specified collection.booleanVector.containsAll(Collection<?> c) Returns true if this Vector contains all of the elements in the specified Collection.EnumSet.copyOf(Collection<E> c) Creates an enum set initialized from the specified collection.static <E> List<E>List.copyOf(Collection<? extends E> coll) Returns anunmodifiable List containing the elements of the given Collection, in its iteration order.static <E> Set<E>Set.copyOf(Collection<? extends E> coll) Returns anunmodifiable Set containing the elements of the given Collection.static booleanCollections.disjoint(Collection<?> c1,Collection<?> c2) Returnstrueif the two specified collections have no elements in common.static <T> Enumeration<T>Collections.enumeration(Collection<T> c) Returns an enumeration over the specified collection.Locale.filter(List<Locale.LanguageRange> priorityList,Collection<Locale> locales) Returns a list of matchingLocaleinstances using the filtering mechanism defined in RFC 4647.Locale.filter(List<Locale.LanguageRange> priorityList,Collection<Locale> locales,Locale.FilteringMode mode) Returns a list of matchingLocaleinstances using the filtering mechanism defined in RFC 4647.Locale.filterTags(List<Locale.LanguageRange> priorityList,Collection<String> tags) Returns a list of matching languages tags using the basic filtering mechanism defined in RFC 4647.Locale.filterTags(List<Locale.LanguageRange> priorityList,Collection<String> tags,Locale.FilteringMode mode) Returns a list of matching languages tags using the basic filtering mechanism defined in RFC 4647.static intCollections.frequency(Collection<?> c,Object o) Returns the number of elements in the specified collection equal to the specified object.staticLocaleLocale.lookup(List<Locale.LanguageRange> priorityList,Collection<Locale> locales) Returns aLocaleinstance for the best-matching language tag using the lookup mechanism defined in RFC 4647.staticStringLocale.lookupTag(List<Locale.LanguageRange> priorityList,Collection<String> tags) Returns the best-matching language tag using the lookup mechanism defined in RFC 4647.static <T extendsObject &Comparable<? super T>>
TCollections.max(Collection<? extends T> coll) Returns the maximum element of the given collection, according to thenatural ordering of its elements.static <T> TCollections.max(Collection<? extends T> coll,Comparator<? super T> comp) Returns the maximum element of the given collection, according to the order induced by the specified comparator.static <T extendsObject &Comparable<? super T>>
TCollections.min(Collection<? extends T> coll) Returns the minimum element of the given collection, according to thenatural ordering of its elements.static <T> TCollections.min(Collection<? extends T> coll,Comparator<? super T> comp) Returns the minimum element of the given collection, according to the order induced by the specified comparator.booleanAbstractCollection.removeAll(Collection<?> c) Removes all of this collection's elements that are also contained in the specified collection (optional operation).booleanAbstractSet.removeAll(Collection<?> c) Removes from this set all of its elements that are contained in the specified collection (optional operation).booleanArrayDeque.removeAll(Collection<?> c) booleanArrayList.removeAll(Collection<?> c) Removes from this list all of its elements that are contained in the specified collection.booleanCollection.removeAll(Collection<?> c) Removes all of this collection's elements that are also contained in the specified collection (optional operation).booleanList.removeAll(Collection<?> c) Removes from this list all of its elements that are contained in the specified collection (optional operation).booleanPriorityQueue.removeAll(Collection<?> c) booleanSet.removeAll(Collection<?> c) Removes from this set all of its elements that are contained in the specified collection (optional operation).booleanVector.removeAll(Collection<?> c) Removes from this Vector all of its elements that are contained in the specified Collection.booleanAbstractCollection.retainAll(Collection<?> c) Retains only the elements in this collection that are contained in the specified collection (optional operation).booleanArrayDeque.retainAll(Collection<?> c) booleanArrayList.retainAll(Collection<?> c) Retains only the elements in this list that are contained in the specified collection.booleanCollection.retainAll(Collection<?> c) Retains only the elements in this collection that are contained in the specified collection (optional operation).booleanList.retainAll(Collection<?> c) Retains only the elements in this list that are contained in the specified collection (optional operation).booleanPriorityQueue.retainAll(Collection<?> c) booleanSet.retainAll(Collection<?> c) Retains only the elements in this set that are contained in the specified collection (optional operation).booleanVector.retainAll(Collection<?> c) Retains only the elements in this Vector that are contained in the specified Collection.static <T> Spliterator<T>Spliterators.spliterator(Collection<? extends T> c, int characteristics) Creates aSpliteratorusing the given collection'siterator()as the source of elements, and reporting itssize()as its initial size.static <T> Collection<T>Collections.synchronizedCollection(Collection<T> c) Returns a synchronized (thread-safe) collection backed by the specified collection.static <T> Collection<T>Collections.unmodifiableCollection(Collection<? extends T> c) Returns anunmodifiable view of the specified collection.Constructors injava.util with parameters of typeCollectionModifierConstructorDescriptionArrayDeque(Collection<? extendsE> c) Constructs a deque containing the elements of the specified collection, in the order they are returned by the collection's iterator.ArrayList(Collection<? extendsE> c) Constructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator.HashSet(Collection<? extendsE> c) Constructs a new set containing the elements in the specified collection.LinkedHashSet(Collection<? extendsE> c) Constructs a new linked hash set with the same elements as the specified collection.LinkedList(Collection<? extendsE> c) Constructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator.PriorityQueue(Collection<? extendsE> c) Creates aPriorityQueuecontaining the elements in the specified collection.TreeSet(Collection<? extendsE> c) Constructs a new tree set containing the elements in the specified collection, sorted according to thenatural ordering of its elements.Vector(Collection<? extendsE> c) Constructs a vector containing the elements of the specified collection, in the order they are returned by the collection's iterator.Uses ofCollection injava.util.concurrent
Subinterfaces ofCollection injava.util.concurrentModifier and TypeInterfaceDescriptioninterfaceADequethat additionally supports blocking operations that wait for the deque to become non-empty when retrieving an element, and wait for space to become available in the deque when storing an element.interfaceAQueuethat additionally supports operations that wait for the queue to become non-empty when retrieving an element, and wait for space to become available in the queue when storing an element.interfaceABlockingQueuein which producers may wait for consumers to receive elements.Classes injava.util.concurrent that implementCollectionModifier and TypeClassDescriptionclassA boundedblocking queue backed by an array.static classA view of a ConcurrentHashMap as aSetof keys, in which additions may optionally be enabled by mapping to a common value.classAn unbounded concurrentdeque based on linked nodes.classAn unbounded thread-safequeue based on linked nodes.classA scalable concurrentNavigableSetimplementation based on aConcurrentSkipListMap.classA thread-safe variant ofArrayListin which all mutative operations (add,set, and so on) are implemented by making a fresh copy of the underlying array.classASetthat uses an internalCopyOnWriteArrayListfor all of its operations.classDelayQueue<E extendsDelayed>An unboundedblocking queue ofDelayedelements, in which an element can only be taken when its delay has expired.classAn optionally-boundedblocking deque based on linked nodes.classAn optionally-boundedblocking queue based on linked nodes.classAn unboundedTransferQueuebased on linked nodes.classAn unboundedblocking queue that uses the same ordering rules as classPriorityQueueand supplies blocking retrieval operations.classAblocking queue in which each insert operation must wait for a corresponding remove operation by another thread, and vice versa.Methods injava.util.concurrent that returnCollectionModifier and TypeMethodDescriptionprotectedCollection<Thread>Semaphore.getQueuedThreads()Returns a collection containing threads that may be waiting to acquire.static <T extendsForkJoinTask<?>>
Collection<T>ForkJoinTask.invokeAll(Collection<T> tasks) Forks all tasks in the specified collection, returning whenisDoneholds for each task or an (unchecked) exception is encountered, in which case the exception is rethrown.ConcurrentHashMap.values()Returns aCollectionview of the values contained in this map.ConcurrentSkipListMap.values()Returns aCollectionview of the values contained in this map.Methods injava.util.concurrent with parameters of typeCollectionModifier and TypeMethodDescriptionbooleanConcurrentHashMap.KeySetView.addAll(Collection<? extendsK> c) Adds all of the elements in the specified collection to this set, as if by callingConcurrentHashMap.KeySetView.add(K)on each one.booleanConcurrentLinkedDeque.addAll(Collection<? extendsE> c) Appends all of the elements in the specified collection to the end of this deque, in the order that they are returned by the specified collection's iterator.booleanConcurrentLinkedQueue.addAll(Collection<? extendsE> c) Appends all of the elements in the specified collection to the end of this queue, in the order that they are returned by the specified collection's iterator.booleanCopyOnWriteArrayList.addAll(int index,Collection<? extendsE> c) Inserts all of the elements in the specified collection into this list, starting at the specified position.booleanCopyOnWriteArrayList.addAll(Collection<? extendsE> 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.booleanCopyOnWriteArraySet.addAll(Collection<? extendsE> c) Adds all of the elements in the specified collection to this set if they're not already present.booleanLinkedBlockingDeque.addAll(Collection<? extendsE> c) Appends all of the elements in the specified collection to the end of this deque, in the order that they are returned by the specified collection's iterator.intCopyOnWriteArrayList.addAllAbsent(Collection<? extendsE> c) Appends all of the elements in the specified collection that are not already contained in this list, to the end of this list, in the order that they are returned by the specified collection's iterator.booleanCopyOnWriteArrayList.containsAll(Collection<?> c) Returnstrueif this list contains all of the elements of the specified collection.booleanCopyOnWriteArraySet.containsAll(Collection<?> c) Returnstrueif this set contains all of the elements of the specified collection.booleanSynchronousQueue.containsAll(Collection<?> c) Returnsfalseunless the given collection is empty.protected intForkJoinPool.drainTasksTo(Collection<? superForkJoinTask<?>> c) Removes all available unexecuted submitted and forked tasks from scheduling queues and adds them to the given collection, without altering their execution status.intArrayBlockingQueue.drainTo(Collection<? superE> c) intArrayBlockingQueue.drainTo(Collection<? superE> c, int maxElements) intBlockingQueue.drainTo(Collection<? superE> c) Removes all available elements from this queue and adds them to the given collection.intBlockingQueue.drainTo(Collection<? superE> c, int maxElements) Removes at most the given number of available elements from this queue and adds them to the given collection.intDelayQueue.drainTo(Collection<? superE> c) intDelayQueue.drainTo(Collection<? superE> c, int maxElements) intLinkedBlockingDeque.drainTo(Collection<? superE> c) intLinkedBlockingDeque.drainTo(Collection<? superE> c, int maxElements) intLinkedBlockingQueue.drainTo(Collection<? superE> c) intLinkedBlockingQueue.drainTo(Collection<? superE> c, int maxElements) intLinkedTransferQueue.drainTo(Collection<? superE> c) intLinkedTransferQueue.drainTo(Collection<? superE> c, int maxElements) intPriorityBlockingQueue.drainTo(Collection<? superE> c) intPriorityBlockingQueue.drainTo(Collection<? superE> c, int maxElements) intSynchronousQueue.drainTo(Collection<? superE> c) intSynchronousQueue.drainTo(Collection<? superE> c, int maxElements) AbstractExecutorService.invokeAll(Collection<? extendsCallable<T>> tasks) AbstractExecutorService.invokeAll(Collection<? extendsCallable<T>> tasks, long timeout,TimeUnit unit) ExecutorService.invokeAll(Collection<? extendsCallable<T>> tasks) Executes the given tasks, returning a list of Futures holding their status and results when all complete.ExecutorService.invokeAll(Collection<? extendsCallable<T>> tasks, long timeout,TimeUnit unit) Executes the given tasks, returning a list of Futures holding their status and results when all complete or the timeout expires, whichever happens first.ForkJoinPool.invokeAll(Collection<? extendsCallable<T>> tasks) static <T extendsForkJoinTask<?>>
Collection<T>ForkJoinTask.invokeAll(Collection<T> tasks) Forks all tasks in the specified collection, returning whenisDoneholds for each task or an (unchecked) exception is encountered, in which case the exception is rethrown.<T> TAbstractExecutorService.invokeAny(Collection<? extendsCallable<T>> tasks) <T> TAbstractExecutorService.invokeAny(Collection<? extendsCallable<T>> tasks, long timeout,TimeUnit unit) <T> TExecutorService.invokeAny(Collection<? extendsCallable<T>> tasks) Executes the given tasks, returning the result of one that has completed successfully (i.e., without throwing an exception), if any do.<T> TExecutorService.invokeAny(Collection<? extendsCallable<T>> tasks, long timeout,TimeUnit unit) Executes the given tasks, returning the result of one that has completed successfully (i.e., without throwing an exception), if any do before the given timeout elapses.booleanArrayBlockingQueue.removeAll(Collection<?> c) booleanConcurrentLinkedDeque.removeAll(Collection<?> c) booleanConcurrentLinkedQueue.removeAll(Collection<?> c) booleanConcurrentSkipListSet.removeAll(Collection<?> c) Removes from this set all of its elements that are contained in the specified collection.booleanCopyOnWriteArrayList.removeAll(Collection<?> c) Removes from this list all of its elements that are contained in the specified collection.booleanCopyOnWriteArraySet.removeAll(Collection<?> c) Removes from this set all of its elements that are contained in the specified collection.booleanLinkedBlockingDeque.removeAll(Collection<?> c) booleanLinkedBlockingQueue.removeAll(Collection<?> c) booleanLinkedTransferQueue.removeAll(Collection<?> c) booleanPriorityBlockingQueue.removeAll(Collection<?> c) booleanSynchronousQueue.removeAll(Collection<?> c) Always returnsfalse.booleanArrayBlockingQueue.retainAll(Collection<?> c) booleanConcurrentLinkedDeque.retainAll(Collection<?> c) booleanConcurrentLinkedQueue.retainAll(Collection<?> c) booleanCopyOnWriteArrayList.retainAll(Collection<?> c) Retains only the elements in this list that are contained in the specified collection.booleanCopyOnWriteArraySet.retainAll(Collection<?> c) Retains only the elements in this set that are contained in the specified collection.booleanLinkedBlockingDeque.retainAll(Collection<?> c) booleanLinkedBlockingQueue.retainAll(Collection<?> c) booleanLinkedTransferQueue.retainAll(Collection<?> c) booleanPriorityBlockingQueue.retainAll(Collection<?> c) booleanSynchronousQueue.retainAll(Collection<?> c) Always returnsfalse.Constructors injava.util.concurrent with parameters of typeCollectionModifierConstructorDescriptionArrayBlockingQueue(int capacity, boolean fair,Collection<? extendsE> c) Creates anArrayBlockingQueuewith the given (fixed) capacity, the specified access policy and initially containing the elements of the given collection, added in traversal order of the collection's iterator.ConcurrentLinkedDeque(Collection<? extendsE> c) Constructs a deque initially containing the elements of the given collection, added in traversal order of the collection's iterator.ConcurrentLinkedQueue(Collection<? extendsE> c) Creates aConcurrentLinkedQueueinitially containing the elements of the given collection, added in traversal order of the collection's iterator.ConcurrentSkipListSet(Collection<? extendsE> c) Constructs a new set containing the elements in the specified collection, that orders its elements according to theirnatural ordering.CopyOnWriteArrayList(Collection<? extendsE> c) Creates a list containing the elements of the specified collection, in the order they are returned by the collection's iterator.CopyOnWriteArraySet(Collection<? extendsE> c) Creates a set containing all of the elements of the specified collection.DelayQueue(Collection<? extendsE> c) Creates aDelayQueueinitially containing the elements of the given collection ofDelayedinstances.LinkedBlockingDeque(Collection<? extendsE> c) Creates aLinkedBlockingDequewith a capacity ofInteger.MAX_VALUE, initially containing the elements of the given collection, added in traversal order of the collection's iterator.LinkedBlockingQueue(Collection<? extendsE> c) Creates aLinkedBlockingQueuewith a capacity ofInteger.MAX_VALUE, initially containing the elements of the given collection, added in traversal order of the collection's iterator.LinkedTransferQueue(Collection<? extendsE> c) Creates aLinkedTransferQueueinitially containing the elements of the given collection, added in traversal order of the collection's iterator.PriorityBlockingQueue(Collection<? extendsE> c) Creates aPriorityBlockingQueuecontaining the elements in the specified collection.Uses ofCollection injava.util.concurrent.locks
Methods injava.util.concurrent.locks that returnCollectionModifier and TypeMethodDescriptionfinalCollection<Thread>AbstractQueuedLongSynchronizer.getExclusiveQueuedThreads()Returns a collection containing threads that may be waiting to acquire in exclusive mode.finalCollection<Thread>AbstractQueuedSynchronizer.getExclusiveQueuedThreads()Returns a collection containing threads that may be waiting to acquire in exclusive mode.protectedCollection<Thread>ReentrantReadWriteLock.getQueuedReaderThreads()Returns a collection containing threads that may be waiting to acquire the read lock.finalCollection<Thread>AbstractQueuedLongSynchronizer.getQueuedThreads()Returns a collection containing threads that may be waiting to acquire.finalCollection<Thread>AbstractQueuedSynchronizer.getQueuedThreads()Returns a collection containing threads that may be waiting to acquire.protectedCollection<Thread>ReentrantLock.getQueuedThreads()Returns a collection containing threads that may be waiting to acquire this lock.protectedCollection<Thread>ReentrantReadWriteLock.getQueuedThreads()Returns a collection containing threads that may be waiting to acquire either the read or write lock.protectedCollection<Thread>ReentrantReadWriteLock.getQueuedWriterThreads()Returns a collection containing threads that may be waiting to acquire the write lock.finalCollection<Thread>AbstractQueuedLongSynchronizer.getSharedQueuedThreads()Returns a collection containing threads that may be waiting to acquire in shared mode.finalCollection<Thread>AbstractQueuedSynchronizer.getSharedQueuedThreads()Returns a collection containing threads that may be waiting to acquire in shared mode.protected finalCollection<Thread>AbstractQueuedLongSynchronizer.ConditionObject.getWaitingThreads()Returns a collection containing those threads that may be waiting on this Condition.finalCollection<Thread>AbstractQueuedLongSynchronizer.getWaitingThreads(AbstractQueuedLongSynchronizer.ConditionObject condition) Returns a collection containing those threads that may be waiting on the given condition associated with this synchronizer.protected finalCollection<Thread>AbstractQueuedSynchronizer.ConditionObject.getWaitingThreads()Returns a collection containing those threads that may be waiting on this Condition.finalCollection<Thread>AbstractQueuedSynchronizer.getWaitingThreads(AbstractQueuedSynchronizer.ConditionObject condition) Returns a collection containing those threads that may be waiting on the given condition associated with this synchronizer.protectedCollection<Thread>ReentrantLock.getWaitingThreads(Condition condition) Returns a collection containing those threads that may be waiting on the given condition associated with this lock.protectedCollection<Thread>ReentrantReadWriteLock.getWaitingThreads(Condition condition) Returns a collection containing those threads that may be waiting on the given condition associated with the write lock.Uses ofCollection injava.util.jar
Methods injava.util.jar that returnCollectionModifier and TypeMethodDescriptionAttributes.values()Returns a Collection view of the attribute values contained in this Map.Uses ofCollection injava.util.stream
Methods injava.util.stream with type parameters of typeCollectionModifier and TypeMethodDescriptionstatic <T,C extendsCollection<T>>
Collector<T,?, C> Collectors.toCollection(Supplier<C> collectionFactory) Returns aCollectorthat accumulates the input elements into a newCollection, in encounter order.Uses ofCollection injavax.management
Classes injavax.management that implementCollectionModifier and TypeClassDescriptionclassRepresents a list of values for attributes of an MBean.Methods injavax.management with parameters of typeCollectionModifier and TypeMethodDescriptionbooleanAttributeList.addAll(int index,Collection<?> c) Inserts all of the elements in the specified collection into this list, starting at the specified position.booleanAttributeList.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.Uses ofCollection injavax.management.openmbean
Methods injavax.management.openmbean that returnCollectionModifier and TypeMethodDescriptionCollection<?>CompositeData.values()Returns an unmodifiable Collection view of the item values contained in thisCompositeDatainstance.Collection<?>CompositeDataSupport.values()Returns an unmodifiable Collection view of the item values contained in thisCompositeDatainstance.Collection<?>TabularData.values()Returns a collection view of theCompositeDatavalues (ie the rows) contained in thisTabularDatainstance.TabularDataSupport.values()Returns a collection view of the rows contained in thisTabularDataSupportinstance.Uses ofCollection injavax.management.relation
Classes injavax.management.relation that implementCollectionModifier and TypeClassDescriptionclassA RoleList represents a list of roles (Role objects).classA RoleUnresolvedList represents a list of RoleUnresolved objects, representing roles not retrieved from a relation due to a problem encountered when trying to access (read or write) the roles.Uses ofCollection injavax.net.ssl
Methods injavax.net.ssl that returnCollectionModifier and TypeMethodDescriptionfinalCollection<SNIMatcher>SSLParameters.getSNIMatchers()Returns aCollectioncontaining allSNIMatchers of the Server Name Indication (SNI) parameter, or null if none has been set.Methods injavax.net.ssl with parameters of typeCollectionModifier and TypeMethodDescriptionfinal voidSSLParameters.setSNIMatchers(Collection<SNIMatcher> matchers) Sets theSNIMatchers of the Server Name Indication (SNI) parameter.Uses ofCollection injavax.print.attribute.standard
Classes injavax.print.attribute.standard that implementCollectionModifier and TypeClassDescriptionfinal classClassJobStateReasonsis 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'sJobStateattribute.Constructors injavax.print.attribute.standard with parameters of typeCollectionModifierConstructorDescriptionJobStateReasons(Collection<JobStateReason> collection) Construct a new job state reasons attribute that contains the sameJobStateReasonobjects as the given collection.Uses ofCollection injavax.script
Methods injavax.script that returnCollectionModifier and TypeMethodDescriptionSimpleBindings.values()Returns aCollectionview of the values contained in this map.Uses ofCollection injavax.sql.rowset
Methods injavax.sql.rowset that returnCollectionModifier and TypeMethodDescriptionCollection<?>JoinRowSet.getRowSets()Returns aCollectionobject containing theRowSetobjects that have been added to thisJoinRowSetobject.Collection<?>CachedRowSet.toCollection()Converts thisCachedRowSetobject to aCollectionobject that contains all of thisCachedRowSetobject's data.Collection<?>CachedRowSet.toCollection(int column) Converts the designated column in thisCachedRowSetobject to aCollectionobject.Collection<?>CachedRowSet.toCollection(String column) Converts the designated column in thisCachedRowSetobject to aCollectionobject.Uses ofCollection injavax.swing
Methods injavax.swing with parameters of typeCollectionModifier and TypeMethodDescriptionvoidDefaultComboBoxModel.addAll(int index,Collection<? extendsE> c) Adds all of the elements present in the collection, starting from the specified index.voidDefaultComboBoxModel.addAll(Collection<? extendsE> c) Adds all of the elements present in the collection.voidDefaultListModel.addAll(int index,Collection<? extendsE> c) Adds all of the elements present in the collection, starting from the specified index.voidDefaultListModel.addAll(Collection<? extendsE> c) Adds all of the elements present in the collection to the list.Uses ofCollection injavax.tools
Methods injavax.tools with parameters of typeCollectionModifier and TypeMethodDescriptiondefaultIterable<? extendsJavaFileObject>StandardJavaFileManager.getJavaFileObjectsFromPaths(Collection<? extendsPath> paths) Returns file objects representing the given paths.default voidStandardJavaFileManager.setLocationForModule(JavaFileManager.Location location,String moduleName,Collection<? extendsPath> paths) Associates the given search path with the given module and location, which must be a module-oriented or output location.default voidStandardJavaFileManager.setLocationFromPaths(JavaFileManager.Location location,Collection<? extendsPath> paths) Associates the given search path with the given location.Uses ofCollection injdk.jshell
Methods injdk.jshell that returnCollectionModifier and TypeMethodDescriptionabstractCollection<Snippet>SourceCodeAnalysis.dependents(Snippet snippet) Returns a collection ofSnippets which might need updating if the givenSnippetis updated.