public class FileList extends Object implements Iterable<File>
DataTransferExt
object for details on this usage.Constructor and Description |
---|
FileList(FileListImpl impl)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
File |
getItem(int index)
Returns the
index th item in the collection. |
int |
getLength()
The number of nodes in the list.
|
Iterator<File> |
iterator()
Returns an iterator over the
File
elements in this list in proper sequence. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public FileList(FileListImpl impl)
impl
- the underlying implementation object.public Iterator<File> iterator()
File
elements in this list in proper sequence.
This implementation returns a straightforward implementation of the
iterator interface, relying on the backing list's getLength()
,
and getItem(int)
methods.
Note that the iterator returned by this method will throw an
UnsupportedOperationException
in response to its
remove
method.
public final File getItem(int index)
index
th item in the collection. If
index
is greater than or equal to the number of nodes in
the list, this returns null
.index
- Index into the collection.index
th position in the
FileList
, or null
if that is not a valid
index.public final int getLength()
length-1
inclusive.Copyright © 2017. All Rights Reserved.