Uses of Interface
java.util.Iterator
-
Packages that use Iterator Package Description java.applet Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context.java.awt.dnd Drag and Drop is a direct manipulation gesture found in many Graphical User Interface systems that provides a mechanism to transfer information between two entities logically associated with presentation elements in the GUI.java.beans.beancontext Provides classes and interfaces relating to bean context.java.lang Provides classes that are fundamental to the design of the Java programming language.java.nio.charset.spi Service-provider classes for thejava.nio.charset
package.java.nio.file Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.java.security.cert Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths.java.sql Provides the API for accessing and processing data stored in a data source (usually a relational database) using the JavaTM programming language.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.concurrent Utility classes commonly useful in concurrent programming.java.util.stream Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.javax.imageio The main package of the Java Image I/O API.javax.imageio.spi A package of the Java Image I/O API containing the plug-in interfaces for readers, writers, transcoders, and streams, and a runtime registry.javax.tools Provides interfaces for tools which can be invoked from a program, for example, compilers.javax.xml.crypto Common classes for XML cryptography.javax.xml.crypto.dom DOM-specific classes for thejavax.xml.crypto
package.javax.xml.namespace XML Namespace processing.javax.xml.soap Provides the API for creating and building SOAP messages.javax.xml.stream javax.xml.stream.events javax.xml.stream.util javax.xml.ws This package contains the core JAX-WS APIs.javax.xml.ws.spi This package defines SPIs for JAX-WS. -
-
Uses of Iterator in java.applet
Methods in java.applet that return Iterator Modifier and Type Method and Description Iterator<String>
AppletContext. getStreamKeys()
Finds all the keys of the streams in this applet context. -
Uses of Iterator in java.awt.dnd
Methods in java.awt.dnd that return Iterator Modifier and Type Method and Description Iterator<InputEvent>
DragGestureEvent. iterator()
Returns anIterator
for the events comprising the gesture. -
Uses of Iterator in java.beans.beancontext
Classes in java.beans.beancontext that implement Iterator Modifier and Type Class and Description protected static class
BeanContextSupport.BCSIterator
protected final subclass that encapsulates an iterator but implements a noop remove() method.Methods in java.beans.beancontext that return Iterator Modifier and Type Method and Description protected Iterator
BeanContextSupport. bcsChildren()
Returns an iterator of all children of this BeanContext.Iterator
BeanContextServicesSupport. getCurrentServiceClasses()
Iterator
BeanContextServices. getCurrentServiceClasses()
Gets the currently available services for this context.Iterator
BeanContextServiceAvailableEvent. getCurrentServiceSelectors()
Gets the list of service dependent selectors.Iterator
BeanContextServicesSupport.BCSSProxyServiceProvider. getCurrentServiceSelectors(BeanContextServices bcs, Class serviceClass)
Iterator
BeanContextServiceProvider. getCurrentServiceSelectors(BeanContextServices bcs, Class serviceClass)
Invoked byBeanContextServices
, this method gets the current service selectors for the specified service.Iterator
BeanContextServicesSupport. getCurrentServiceSelectors(Class serviceClass)
Iterator
BeanContextServices. getCurrentServiceSelectors(Class serviceClass)
Gets the list of service dependent service parameters (Service Selectors) for the specified service, by calling getCurrentServiceSelectors() on the underlying BeanContextServiceProvider.Iterator
BeanContextSupport. iterator()
Gets all JavaBean or BeanContext instances currently nested in this BeanContext.Iterator
BeanContextMembershipEvent. iterator()
Gets the array of children affected by this event. -
Uses of Iterator in java.lang
Methods in java.lang that return Iterator Modifier and Type Method and Description Iterator<T>
Iterable. iterator()
Returns an iterator over elements of typeT
. -
Uses of Iterator in java.nio.charset.spi
Methods in java.nio.charset.spi that return Iterator Modifier and Type Method and Description abstract Iterator<Charset>
CharsetProvider. charsets()
Creates an iterator that iterates over the charsets supported by this provider. -
Uses of Iterator in java.nio.file
Methods in java.nio.file that return Iterator Modifier and Type Method and Description Iterator<T>
DirectoryStream. iterator()
Returns the iterator associated with thisDirectoryStream
.Iterator<Path>
Path. iterator()
Returns an iterator over the name elements of this path. -
Uses of Iterator in java.security.cert
Methods in java.security.cert that return Iterator Modifier and Type Method and Description Iterator<String>
CertificateFactorySpi. engineGetCertPathEncodings()
Returns an iteration of theCertPath
encodings supported by this certificate factory, with the default encoding first.Iterator<String>
CertificateFactory. getCertPathEncodings()
Returns an iteration of theCertPath
encodings supported by this certificate factory, with the default encoding first.Iterator<? extends PolicyNode>
PolicyNode. getChildren()
Returns an iterator over the children of this node.abstract Iterator<String>
CertPath. getEncodings()
Returns an iteration of the encodings supported by this certification path, with the default encoding first. -
Uses of Iterator in java.sql
Methods in java.sql that return Iterator Modifier and Type Method and Description Iterator<Throwable>
SQLException. iterator()
Returns an iterator over the chained SQLExceptions. -
Uses of Iterator in java.util
Subinterfaces of Iterator in java.util Modifier and Type Interface and Description interface
ListIterator<E>
An iterator for lists that allows the programmer to traverse the list in either direction, modify the list during iteration, and obtain the iterator's current position in the list.interface
PrimitiveIterator<T,T_CONS>
A base type for primitive specializations ofIterator
.static interface
PrimitiveIterator.OfDouble
An Iterator specialized fordouble
values.static interface
PrimitiveIterator.OfInt
An Iterator specialized forint
values.static interface
PrimitiveIterator.OfLong
An Iterator specialized forlong
values.Classes in java.util that implement Iterator Modifier and Type Class and Description class
Scanner
A simple text scanner which can parse primitive types and strings using regular expressions.Methods in java.util that return Iterator Modifier and Type Method and Description Iterator<E>
ArrayDeque. descendingIterator()
Iterator<E>
TreeSet. descendingIterator()
Returns an iterator over the elements in this set in descending order.Iterator<E>
LinkedList. descendingIterator()
Iterator<E>
NavigableSet. descendingIterator()
Returns an iterator over the elements in this set, in descending order.Iterator<E>
Deque. descendingIterator()
Returns an iterator over the elements in this deque in reverse sequential order.static <T> Iterator<T>
Collections. emptyIterator()
Returns an iterator that has no elements.Iterator<E>
ArrayDeque. iterator()
Returns an iterator over the elements in this deque.Iterator<E>
TreeSet. iterator()
Returns an iterator over the elements in this set in ascending order.Iterator<S>
ServiceLoader. iterator()
Lazily loads the available providers of this loader's service.Iterator<E>
PriorityQueue. iterator()
Returns an iterator over the elements in this queue.Iterator<E>
AbstractSequentialList. iterator()
Returns an iterator over the elements in this list (in proper sequence).Iterator<E>
HashSet. iterator()
Returns an iterator over the elements in this set.Iterator<E>
NavigableSet. iterator()
Returns an iterator over the elements in this set, in ascending order.Iterator<E>
Deque. iterator()
Returns an iterator over the elements in this deque in proper sequence.Iterator<E>
ArrayList. iterator()
Returns an iterator over the elements in this list in proper sequence.abstract Iterator<E>
AbstractCollection. iterator()
Returns an iterator over the elements contained in this collection.Iterator<E>
AbstractList. iterator()
Returns an iterator over the elements in this list in proper sequence.Iterator<E>
Vector. iterator()
Returns an iterator over the elements in this list in proper sequence.Iterator<E>
Set. iterator()
Returns an iterator over the elements in this set.Iterator<E>
Collection. iterator()
Returns an iterator over the elements in this collection.Iterator<E>
List. iterator()
Returns an iterator over the elements in this list in proper sequence.static <T> Iterator<T>
Spliterators. iterator(Spliterator<? extends T> spliterator)
Creates anIterator
from aSpliterator
.Methods in java.util with parameters of type Iterator Modifier and Type Method and Description static <T> Spliterator<T>
Spliterators. spliterator(Iterator<? extends T> iterator, long size, int characteristics)
Creates aSpliterator
using a givenIterator
as the source of elements, and with a given initially reported size.static <T> Spliterator<T>
Spliterators. spliteratorUnknownSize(Iterator<? extends T> iterator, int characteristics)
Creates aSpliterator
using a givenIterator
as the source of elements, with no initial size estimate. -
Uses of Iterator in java.util.concurrent
Methods in java.util.concurrent that return Iterator Modifier and Type Method and Description Iterator<E>
ConcurrentSkipListSet. descendingIterator()
Returns an iterator over the elements in this set in descending order.Iterator<E>
ConcurrentLinkedDeque. descendingIterator()
Returns an iterator over the elements in this deque in reverse sequential order.Iterator<E>
LinkedBlockingDeque. descendingIterator()
Returns an iterator over the elements in this deque in reverse sequential order.Iterator<E>
LinkedTransferQueue. iterator()
Returns an iterator over the elements in this queue in proper sequence.Iterator<E>
ArrayBlockingQueue. iterator()
Returns an iterator over the elements in this queue in proper sequence.Iterator<E>
PriorityBlockingQueue. iterator()
Returns an iterator over the elements in this queue.Iterator<E>
ConcurrentSkipListSet. iterator()
Returns an iterator over the elements in this set in ascending order.Iterator<E>
CopyOnWriteArraySet. iterator()
Returns an iterator over the elements contained in this set in the order in which these elements were added.Iterator<E>
ConcurrentLinkedDeque. iterator()
Returns an iterator over the elements in this deque in proper sequence.Iterator<E>
LinkedBlockingQueue. iterator()
Returns an iterator over the elements in this queue in proper sequence.Iterator<E>
SynchronousQueue. iterator()
Returns an empty iterator in whichhasNext
always returnsfalse
.Iterator<E>
BlockingDeque. iterator()
Returns an iterator over the elements in this deque in proper sequence.Iterator<E>
LinkedBlockingDeque. iterator()
Returns an iterator over the elements in this deque in proper sequence.Iterator<E>
ConcurrentLinkedQueue. iterator()
Returns an iterator over the elements in this queue in proper sequence.Iterator<E>
CopyOnWriteArrayList. iterator()
Returns an iterator over the elements in this list in proper sequence.Iterator<E>
DelayQueue. iterator()
Returns an iterator over all the elements (both expired and unexpired) in this queue.Iterator<K>
ConcurrentHashMap.KeySetView. iterator()
-
Uses of Iterator in java.util.stream
Methods in java.util.stream that return Iterator Modifier and Type Method and Description Iterator<T>
BaseStream. iterator()
Returns an iterator for the elements of this stream. -
Uses of Iterator in javax.imageio
Methods in javax.imageio that return Iterator Modifier and Type Method and Description static Iterator<ImageReader>
ImageIO. getImageReaders(Object input)
Returns anIterator
containing all currently registeredImageReader
s that claim to be able to decode the suppliedObject
, typically anImageInputStream
.static Iterator<ImageReader>
ImageIO. getImageReadersByFormatName(String formatName)
Returns anIterator
containing all currently registeredImageReader
s that claim to be able to decode the named format.static Iterator<ImageReader>
ImageIO. getImageReadersByMIMEType(String MIMEType)
Returns anIterator
containing all currently registeredImageReader
s that claim to be able to decode files with the given MIME type.static Iterator<ImageReader>
ImageIO. getImageReadersBySuffix(String fileSuffix)
Returns anIterator
containing all currently registeredImageReader
s that claim to be able to decode files with the given suffix.static Iterator<ImageTranscoder>
ImageIO. getImageTranscoders(ImageReader reader, ImageWriter writer)
Returns anIterator
containing all currently registeredImageTranscoder
s that claim to be able to transcode between the metadata of the givenImageReader
andImageWriter
.abstract Iterator<ImageTypeSpecifier>
ImageReader. getImageTypes(int imageIndex)
Returns anIterator
containing possible image types to which the given image may be decoded, in the form ofImageTypeSpecifiers
s.static Iterator<ImageWriter>
ImageIO. getImageWriters(ImageTypeSpecifier type, String formatName)
Returns anIterator
containing all currently registeredImageWriter
s that claim to be able to encode images of the given layout (specified using anImageTypeSpecifier
) in the given format.static Iterator<ImageWriter>
ImageIO. getImageWritersByFormatName(String formatName)
Returns anIterator
containing all currently registeredImageWriter
s that claim to be able to encode the named format.static Iterator<ImageWriter>
ImageIO. getImageWritersByMIMEType(String MIMEType)
Returns anIterator
containing all currently registeredImageWriter
s that claim to be able to encode files with the given MIME type.static Iterator<ImageWriter>
ImageIO. getImageWritersBySuffix(String fileSuffix)
Returns anIterator
containing all currently registeredImageWriter
s that claim to be able to encode files with the given suffix.Iterator<IIOImage>
ImageReader. readAll(Iterator<? extends ImageReadParam> params)
Returns anIterator
containing all the images, thumbnails, and metadata, starting at the index given bygetMinIndex
, from the input source in the form ofIIOImage
objects.Methods in javax.imageio with parameters of type Iterator Modifier and Type Method and Description protected static BufferedImage
ImageReader. getDestination(ImageReadParam param, Iterator<ImageTypeSpecifier> imageTypes, int width, int height)
Returns theBufferedImage
to which decoded pixel data should be written.Iterator<IIOImage>
ImageReader. readAll(Iterator<? extends ImageReadParam> params)
Returns anIterator
containing all the images, thumbnails, and metadata, starting at the index given bygetMinIndex
, from the input source in the form ofIIOImage
objects. -
Uses of Iterator in javax.imageio.spi
Methods in javax.imageio.spi that return Iterator Modifier and Type Method and Description Iterator<Class<?>>
ServiceRegistry. getCategories()
Returns anIterator
ofClass
objects indicating the current set of categories.<T> Iterator<T>
ServiceRegistry. getServiceProviders(Class<T> category, boolean useOrdering)
Returns anIterator
containing all registered service providers in the given category.<T> Iterator<T>
ServiceRegistry. getServiceProviders(Class<T> category, ServiceRegistry.Filter filter, boolean useOrdering)
Returns anIterator
containing service provider objects within a given category that satisfy a criterion imposed by the suppliedServiceRegistry.Filter
object'sfilter
method.static <T> Iterator<T>
ServiceRegistry. lookupProviders(Class<T> providerClass)
Locates and incrementally instantiates the available providers of a given service using the context class loader.static <T> Iterator<T>
ServiceRegistry. lookupProviders(Class<T> providerClass, ClassLoader loader)
Searches for implementations of a particular service class using the given class loader.Methods in javax.imageio.spi with parameters of type Iterator Modifier and Type Method and Description void
ServiceRegistry. registerServiceProviders(Iterator<?> providers)
Adds a set of service provider objects, taken from anIterator
to the registry.Constructors in javax.imageio.spi with parameters of type Iterator Constructor and Description ServiceRegistry(Iterator<Class<?>> categories)
Constructs aServiceRegistry
instance with a set of categories taken from thecategories
argument. -
Uses of Iterator in javax.tools
Methods in javax.tools with parameters of type Iterator Modifier and Type Method and Description boolean
JavaFileManager. handleOption(String current, Iterator<String> remaining)
Handles one option.boolean
ForwardingJavaFileManager. handleOption(String current, Iterator<String> remaining)
-
Uses of Iterator in javax.xml.crypto
Methods in javax.xml.crypto that return Iterator Modifier and Type Method and Description Iterator
NodeSetData. iterator()
Returns a read-only iterator over the nodes contained in thisNodeSetData
in document order. -
Uses of Iterator in javax.xml.crypto.dom
Methods in javax.xml.crypto.dom that return Iterator Modifier and Type Method and Description Iterator
DOMCryptoContext. iterator()
Returns a read-only iterator over the set of Id/Element mappings of thisDOMCryptoContext
. -
Uses of Iterator in javax.xml.namespace
Methods in javax.xml.namespace that return Iterator Modifier and Type Method and Description Iterator
NamespaceContext. getPrefixes(String namespaceURI)
Get all prefixes bound to a Namespace URI in the current scope. -
Uses of Iterator in javax.xml.soap
Methods in javax.xml.soap that return Iterator Modifier and Type Method and Description Iterator
SOAPHeader. examineAllHeaderElements()
Returns anIterator
over all theSOAPHeaderElement
objects in thisSOAPHeader
object.Iterator
SOAPHeader. examineHeaderElements(String actor)
Returns anIterator
over all theSOAPHeaderElement
objects in thisSOAPHeader
object that have the specified actor.Iterator
SOAPHeader. examineMustUnderstandHeaderElements(String actor)
Returns anIterator
over all theSOAPHeaderElement
objects in thisSOAPHeader
object that have the specified actor and that have a MustUnderstand attribute whose value is equivalent totrue
.Iterator
SOAPHeader. extractAllHeaderElements()
Returns anIterator
over all theSOAPHeaderElement
objects in thisSOAPHeader
object and detaches them from thisSOAPHeader
object.Iterator
SOAPHeader. extractHeaderElements(String actor)
Returns anIterator
over all theSOAPHeaderElement
objects in thisSOAPHeader
object that have the specified actor and detaches them from thisSOAPHeader
object.Iterator
SOAPElement. getAllAttributes()
Returns anIterator
over all of the attributeName
objects in thisSOAPElement
object.Iterator
SOAPElement. getAllAttributesAsQNames()
Returns anIterator
over all of the attributes in thisSOAPElement
asQName
objects.Iterator
MimeHeaders. getAllHeaders()
Returns all theMimeHeader
s in thisMimeHeaders
object.abstract Iterator
AttachmentPart. getAllMimeHeaders()
Retrieves all the headers for thisAttachmentPart
object as an iterator over theMimeHeader
objects.abstract Iterator
SOAPPart. getAllMimeHeaders()
Retrieves all the headers for thisSOAPPart
object as an iterator over theMimeHeader
objects.abstract Iterator
SOAPMessage. getAttachments()
Retrieves all theAttachmentPart
objects that are part of thisSOAPMessage
object.abstract Iterator
SOAPMessage. getAttachments(MimeHeaders headers)
Retrieves all theAttachmentPart
objects that have header entries that match the specified headers.Iterator
SOAPElement. getChildElements()
Returns anIterator
over all the immediate childNode
s of this element.Iterator
SOAPElement. getChildElements(Name name)
Returns anIterator
over all the immediate childNode
s of this element with the specified name.Iterator
SOAPElement. getChildElements(QName qname)
Returns anIterator
over all the immediate childNode
s of this element with the specified qname.Iterator
Detail. getDetailEntries()
Gets an Iterator over all of theDetailEntry
s in thisDetail
object.Iterator
SOAPFault. getFaultReasonLocales()
Returns anIterator
over a distinct sequence ofLocale
s for which there are associated Reason Text items.Iterator
SOAPFault. getFaultReasonTexts()
Returns anIterator
over a sequence ofString
objects containing all of the Reason Text items for thisSOAPFault
.Iterator
SOAPFault. getFaultSubcodes()
Gets the Subcodes for thisSOAPFault
as an iterator overQNames
.Iterator
MimeHeaders. getMatchingHeaders(String[] names)
Returns all theMimeHeader
objects whose name matches a name in the given array of names.abstract Iterator
AttachmentPart. getMatchingMimeHeaders(String[] names)
Retrieves allMimeHeader
objects that match a name in the given array.abstract Iterator
SOAPPart. getMatchingMimeHeaders(String[] names)
Retrieves allMimeHeader
objects that match a name in the given array.Iterator
SOAPElement. getNamespacePrefixes()
Returns anIterator
over the namespace prefixString
s declared by this element.Iterator
MimeHeaders. getNonMatchingHeaders(String[] names)
Returns all of theMimeHeader
objects whose name does not match a name in the given array of names.abstract Iterator
AttachmentPart. getNonMatchingMimeHeaders(String[] names)
Retrieves allMimeHeader
objects whose name does not match a name in the given array.abstract Iterator
SOAPPart. getNonMatchingMimeHeaders(String[] names)
Retrieves allMimeHeader
objects whose name does not match a name in the given array.Iterator
SOAPElement. getVisibleNamespacePrefixes()
Returns anIterator
over the namespace prefixString
s visible to this element.Methods in javax.xml.soap with parameters of type Iterator Modifier and Type Method and Description SOAPHeaderElement
SOAPHeader. addUpgradeHeaderElement(Iterator supportedSOAPURIs)
Creates a new UpgradeSOAPHeaderElement
object initialized with the specified List of supported SOAP URIs and adds it to thisSOAPHeader
object. -
Uses of Iterator in javax.xml.stream
Subinterfaces of Iterator in javax.xml.stream Modifier and Type Interface and Description interface
XMLEventReader
This is the top level interface for parsing XML Events.Methods in javax.xml.stream with parameters of type Iterator Modifier and Type Method and Description abstract EndElement
XMLEventFactory. createEndElement(QName name, Iterator namespaces)
Create a new EndElementabstract EndElement
XMLEventFactory. createEndElement(String prefix, String namespaceUri, String localName, Iterator namespaces)
Create a new EndElementabstract StartElement
XMLEventFactory. createStartElement(QName name, Iterator attributes, Iterator namespaces)
Create a new StartElement.abstract StartElement
XMLEventFactory. createStartElement(QName name, Iterator attributes, Iterator namespaces)
Create a new StartElement.abstract StartElement
XMLEventFactory. createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces)
Create a new StartElement.abstract StartElement
XMLEventFactory. createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces)
Create a new StartElement.abstract StartElement
XMLEventFactory. createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces, NamespaceContext context)
Create a new StartElement.abstract StartElement
XMLEventFactory. createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces, NamespaceContext context)
Create a new StartElement. -
Uses of Iterator in javax.xml.stream.events
Methods in javax.xml.stream.events that return Iterator Modifier and Type Method and Description Iterator
StartElement. getAttributes()
Returns an Iterator of non-namespace declared attributes declared on this START_ELEMENT, returns an empty iterator if there are no attributes.Iterator
EndElement. getNamespaces()
Returns an Iterator of namespaces that have gone out of scope.Iterator
StartElement. getNamespaces()
Returns an Iterator of namespaces declared on this element. -
Uses of Iterator in javax.xml.stream.util
Classes in javax.xml.stream.util that implement Iterator Modifier and Type Class and Description class
EventReaderDelegate
This is the base class for deriving an XMLEventReader filter. -
Uses of Iterator in javax.xml.ws
Methods in javax.xml.ws that return Iterator Modifier and Type Method and Description Iterator<QName>
Service. getPorts()
Returns anIterator
for the list ofQName
s of service endpoints grouped by this service -
Uses of Iterator in javax.xml.ws.spi
Methods in javax.xml.ws.spi that return Iterator Modifier and Type Method and Description abstract Iterator<QName>
ServiceDelegate. getPorts()
Returns anIterator
for the list ofQName
s of service endpoints grouped by this service
-
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.