Spec-Zone .ru
спецификации, руководства, описания, API
|
Package | Description |
---|---|
java.io |
Provides for system input and output through data streams,
serialization and the file system.
|
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.
|
java.util.regex |
Classes for matching character sequences against patterns specified by regular
expressions.
|
java.util.stream |
java.util.stream
|
java.util.zip |
Provides classes for reading and writing the standard ZIP and GZIP
file formats.
|
Modifier and Type | Method and Description |
---|---|
Stream<String> |
BufferedReader.lines()
Returns a
Stream , the elements of which are lines read from
this BufferedReader . |
Modifier and Type | Method and Description |
---|---|
default Stream<E> |
Collection.parallelStream()
Returns a possibly parallel
Stream with this collection as its
source. |
default Stream<E> |
Collection.stream()
Returns a sequential
Stream with this collection as its source. |
static <T> Stream<T> |
Arrays.stream(T[] array)
Returns a sequential
Stream with the specified array as its
source. |
static <T> Stream<T> |
Arrays.stream(T[] array,
int startInclusive,
int endExclusive)
Returns a sequential
Stream with the specified range of the
specified array as its source. |
Modifier and Type | Method and Description |
---|---|
Stream<JarEntry> |
JarFile.stream() |
Modifier and Type | Method and Description |
---|---|
Stream<String> |
Pattern.splitAsStream(CharSequence input)
Creates a stream from the given input sequence around matches of this
pattern.
|
Modifier and Type | Interface and Description |
---|---|
interface |
CloseableStream<T>
A
CloseableStream is a Stream that can be closed. |
Modifier and Type | Class and Description |
---|---|
class |
DelegatingStream<T>
A
Stream implementation that delegates operations to another Stream . |
Modifier and Type | Method and Description |
---|---|
Stream<Double> |
DoubleStream.boxed()
Returns a
Stream consisting of the elements of this stream,
boxed to Double . |
Stream<Integer> |
IntStream.boxed()
Returns a
Stream consisting of the elements of this stream,
each boxed to an Integer . |
Stream<Long> |
LongStream.boxed()
Returns a
Stream consisting of the elements of this stream,
each boxed to a Long . |
Stream<T> |
StreamBuilder.build()
Builds the stream, transitioning this builder to the built state.
|
Stream<T> |
DelegatingStream.distinct() |
Stream<T> |
Stream.distinct()
Returns a stream consisting of the distinct elements (according to
Object.equals(Object) ) of this stream. |
static <T> Stream<T> |
Stream.empty()
Returns an empty sequential
Stream . |
Stream<T> |
DelegatingStream.filter(Predicate<? super T> predicate) |
Stream<T> |
Stream.filter(Predicate<? super T> predicate)
Returns a stream consisting of the elements of this stream that match
the given predicate.
|
<R> Stream<R> |
DelegatingStream.flatMap(Function<? super T,? extends Stream<? extends R>> mapper) |
<R> Stream<R> |
Stream.flatMap(Function<? super T,? extends Stream<? extends R>> mapper)
Returns a stream consisting of the results of replacing each element of
this stream with the contents of the stream produced by applying the
provided mapping function to each element.
|
static <T> Stream<T> |
Stream.generate(Supplier<T> s)
Returns a sequential
Stream where each element is
generated by a Supplier . |
static <T> Stream<T> |
Stream.iterate(T seed,
UnaryOperator<T> f)
Returns an infinite sequential
Stream produced by iterative
application of a function f to an initial element seed ,
producing a Stream consisting of seed , f(seed) ,
f(f(seed)) , etc. |
Stream<T> |
DelegatingStream.limit(long maxSize) |
Stream<T> |
Stream.limit(long maxSize)
Returns a stream consisting of the elements of this stream, truncated
to be no longer than
maxSize in length. |
<R> Stream<R> |
DelegatingStream.map(Function<? super T,? extends R> mapper) |
<R> Stream<R> |
Stream.map(Function<? super T,? extends R> mapper)
Returns a stream consisting of the results of applying the given
function to the elements of this stream.
|
<U> Stream<U> |
DoubleStream.mapToObj(DoubleFunction<? extends U> mapper)
Returns an object-valued
Stream consisting of the results of
applying the given function to the elements of this stream. |
<U> Stream<U> |
IntStream.mapToObj(IntFunction<? extends U> mapper)
Returns an object-valued
Stream consisting of the results of
applying the given function to the elements of this stream. |
<U> Stream<U> |
LongStream.mapToObj(LongFunction<? extends U> mapper)
Returns an object-valued
Stream consisting of the results of
applying the given function to the elements of this stream. |
static <T> Stream<T> |
Stream.of(T... values)
Returns a sequential stream whose elements are the specified values.
|
static <T> Stream<T> |
Stream.of(T t)
Returns a sequential
Stream containing a single element. |
Stream<T> |
DelegatingStream.parallel() |
static <T> Stream<T> |
StreamSupport.parallelStream(Spliterator<T> spliterator)
Creates a new parallel
Stream from a Spliterator . |
static <T> Stream<T> |
StreamSupport.parallelStream(Supplier<? extends Spliterator<T>> supplier,
int characteristics)
Creates a new parallel
Stream from a Supplier of
Spliterator . |
Stream<T> |
DelegatingStream.peek(Consumer<? super T> consumer) |
Stream<T> |
Stream.peek(Consumer<? super T> consumer)
Returns a stream consisting of the elements of this stream, additionally
performing the provided action on each element as elements are consumed
from the resulting stream.
|
Stream<T> |
DelegatingStream.sequential() |
Stream<T> |
DelegatingStream.sorted() |
Stream<T> |
Stream.sorted()
Returns a stream consisting of the elements of this stream, sorted
according to natural order.
|
Stream<T> |
DelegatingStream.sorted(Comparator<? super T> comparator) |
Stream<T> |
Stream.sorted(Comparator<? super T> comparator)
Returns a stream consisting of the elements of this stream, sorted
according to the provided
Comparator . |
static <T> Stream<T> |
StreamSupport.stream(Spliterator<T> spliterator)
Creates a new sequential
Stream from a Spliterator . |
static <T> Stream<T> |
StreamSupport.stream(Supplier<? extends Spliterator<T>> supplier,
int characteristics)
Creates a new sequential
Stream from a Supplier of
Spliterator . |
Stream<T> |
DelegatingStream.substream(long startingOffset) |
Stream<T> |
Stream.substream(long startInclusive)
Returns a stream consisting of the remaining elements of this stream
after indexing
startInclusive elements into the stream. |
Stream<T> |
DelegatingStream.substream(long startingOffset,
long endingOffset) |
Stream<T> |
Stream.substream(long startInclusive,
long endExclusive)
Returns a stream consisting of the remaining elements of this stream
after indexing
startInclusive elements into the stream and
truncated to contain no more than endExclusive - startInclusive
elements. |
Stream<T> |
DelegatingStream.unordered() |
Modifier and Type | Method and Description |
---|---|
<R> Stream<R> |
DelegatingStream.flatMap(Function<? super T,? extends Stream<? extends R>> mapper) |
<R> Stream<R> |
Stream.flatMap(Function<? super T,? extends Stream<? extends R>> mapper)
Returns a stream consisting of the results of replacing each element of
this stream with the contents of the stream produced by applying the
provided mapping function to each element.
|
Constructor and Description |
---|
DelegatingStream(Stream<T> delegate)
Construct a
Stream that delegates operations to another Stream . |
Modifier and Type | Method and Description |
---|---|
Stream<? extends ZipEntry> |
ZipFile.stream()
Return an ordered
Stream over the ZIP file entries. |
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, 2013, Oracle and/or its affiliates. All rights reserved.
DRAFT ea-b92