/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | Collectors.java | 25 package java.util.stream; 70 * List<String> list = people.stream().map(Person::getName).collect(Collectors.toList()); 73 * Set<String> set = people.stream().map(Person::getName).collect(Collectors.toCollection(TreeSet::new)); 76 * String joined = things.stream() 81 * int total = employees.stream() 86 * = employees.stream() 91 * = employees.stream() 97 * students.stream() 333 * {@code partitioningBy}. For example, given a stream of 337 * = people.stream() [all...] |
H A D | DoublePipeline.java | 25 package java.util.stream; 60 * Constructor for the head of a stream pipeline. 62 * @param source {@code Supplier<Spliterator>} describing the stream source 63 * @param sourceFlags the source flags for the stream source, described in 72 * Constructor for the head of a stream pipeline. 74 * @param source {@code Spliterator} describing the stream source 75 * @param sourceFlags the source flags for the stream source, described in 386 * the proper result if the stream contains infinite values of 523 * @param source {@code Supplier<Spliterator>} describing the stream 525 * @param sourceFlags the source flags for the stream sourc [all...] |
H A D | IntPipeline.java | 25 package java.util.stream; 59 * Constructor for the head of a stream pipeline. 61 * @param source {@code Supplier<Spliterator>} describing the stream source 62 * @param sourceFlags The source flags for the stream source, described in 72 * Constructor for the head of a stream pipeline. 74 * @param source {@code Spliterator} describing the stream source 75 * @param sourceFlags The source flags for the stream source, described in 520 * @param source {@code Supplier<Spliterator>} describing the stream 522 * @param sourceFlags the source flags for the stream source, described 534 * @param source {@code Spliterator} describing the stream sourc [all...] |
H A D | IntStream.java | 25 package java.util.stream; 58 * int sum = widgets.stream() 65 * for <a href="package-summary.html">java.util.stream</a> for additional 66 * specification of streams, stream operations, stream pipelines, and 71 * @see <a href="package-summary.html">java.util.stream</a> 76 * Returns a stream consisting of the elements of this stream that match 86 * @return the new stream 91 * Returns a stream consistin [all...] |
H A D | LongPipeline.java | 25 package java.util.stream; 60 * Constructor for the head of a stream pipeline. 62 * @param source {@code Supplier<Spliterator>} describing the stream source 63 * @param sourceFlags the source flags for the stream source, described in 73 * Constructor for the head of a stream pipeline. 75 * @param source {@code Spliterator} describing the stream source 76 * @param sourceFlags the source flags for the stream source, described in 503 * @param source {@code Supplier<Spliterator>} describing the stream 505 * @param sourceFlags the source flags for the stream source, described 517 * @param source {@code Spliterator} describing the stream sourc [all...] |
H A D | LongStream.java | 25 package java.util.stream; 62 * long sum = widgets.stream() 69 * for <a href="package-summary.html">java.util.stream</a> for additional 70 * specification of streams, stream operations, stream pipelines, and 75 * @see <a href="package-summary.html">java.util.stream</a> 80 * Returns a stream consisting of the elements of this stream that match 90 * @return the new stream 95 * Returns a stream consistin [all...] |
H A D | ReferencePipeline.java | 25 package java.util.stream; 63 * Constructor for the head of a stream pipeline. 65 * @param source {@code Supplier<Spliterator>} describing the stream source 66 * @param sourceFlags the source flags for the stream source, described in 76 * Constructor for the head of a stream pipeline. 78 * @param source {@code Spliterator} describing the stream source 79 * @param sourceFlags The source flags for the stream source, described in 255 // We can do better than this, by polling cancellationRequested when stream is infinite 282 // We can do better than this, by polling cancellationRequested when stream is infinite 310 // We can do better than this, by polling cancellationRequested when stream i [all...] |
H A D | StreamOpFlag.java | 25 package java.util.stream; 33 * utilized by the stream framework to control, specialize or optimize 38 * entities associated with streams: stream sources, intermediate operations, 39 * and terminal operations. Not all stream flags are meaningful for all 106 * may describe all the characteristics of a given stream entity, and that, for 107 * example, the flags for a stream source can be efficiently combined with the 108 * flags for later operations on that stream. 111 * {@link #TERMINAL_OP_MASK} can be ANDed with a bit set of stream flags to 114 * <p>When describing a stream source, one only need describe what 115 * characteristics that stream ha [all...] |
H A D | StreamSpliterators.java | 25 package java.util.stream; 57 * <p>A wrapping spliterator produced from a sequential stream 223 // operations filtering or adding elements to the stream
|
/libcore/ojluni/src/main/native/ |
H A D | PlainSocketImpl.c | 143 jboolean stream) { 146 int type = (stream ? SOCK_STREAM : SOCK_DGRAM); 142 PlainSocketImpl_socketCreate(JNIEnv *env, jobject this, jboolean stream) argument
|
H A D | Net.c | 153 jboolean stream, jboolean reuse) 156 int type = (stream ? SOCK_STREAM : SOCK_DGRAM); 152 Java_sun_nio_ch_Net_socket0(JNIEnv *env, jclass cl, jboolean preferIPv6, jboolean stream, jboolean reuse) argument
|
/libcore/ojluni/src/main/java/java/net/ |
H A D | Socket.java | 173 * Creates a stream socket and connects it to the specified port 216 * Creates a stream socket and connects it to the specified port 326 * Creates a stream socket and connects it to the specified port 334 * If the stream argument is <code>true</code>, this creates a 335 * stream socket. If the stream argument is <code>false</code>, it 351 * @param stream a <code>boolean</code> indicating whether this is 352 * a stream socket or a datagram socket. 366 public Socket(String host, int port, boolean stream) throws IOException { argument 369 (SocketAddress) null, stream); 409 Socket(InetAddress host, int port, boolean stream) argument 414 Socket(SocketAddress address, SocketAddress localAddr, boolean stream) argument 447 createImpl(boolean stream) argument [all...] |
/libcore/ojluni/src/main/java/java/text/ |
H A D | DecimalFormat.java | 1457 private void writeObject(ObjectOutputStream stream) throws IOException, ClassNotFoundException { argument 1458 ObjectOutputStream.PutField fields = stream.putFields(); 1481 stream.writeFields(); 1485 * Reads the default serializable fields from the stream and performs 1499 * <code>DOUBLE_FRACTION_DIGITS</code>, then the stream data is invalid 1512 * the stream was written by JDK 1.1, initialize 1527 private void readObject(ObjectInputStream stream) argument 1529 ObjectInputStream.GetField fields = stream.readFields();
|
H A D | DecimalFormatSymbols.java | 772 private void writeObject(ObjectOutputStream stream) throws IOException { argument 773 ObjectOutputStream.PutField fields = stream.putFields(); 797 stream.writeFields(); 817 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { argument 818 ObjectInputStream.GetField fields = stream.readFields(); 977 * even though it is supported by the implementation and the stream format. 1020 * Describes the version of <code>DecimalFormatSymbols</code> present on the stream.
|
H A D | NumberFormat.java | 777 * the stream was written by JDK 1.1, 786 * is greater than <code>maximumFractionDigits</code>, then the stream data 793 private void readObject(ObjectInputStream stream) argument 796 stream.defaultReadObject(); 817 * with the JDK 1.1 version of the stream format. 821 private void writeObject(ObjectOutputStream stream) argument 832 stream.defaultWriteObject(); 863 * When writing to a stream, <code>maxIntegerDigits</code> is set to 865 * whichever is smaller. When reading from a stream, this field is used 881 * When writing to a stream, <cod [all...] |
H A D | SimpleDateFormat.java | 419 * The version of the serialized data on the stream. Possible values: 421 * <li><b>0</b> or not present on stream: JDK 1.1.3. This version 422 * has no <code>defaultCenturyStart</code> on stream. 2414 * After reading an object from the input stream, the format 2419 private void readObject(ObjectInputStream stream) argument 2421 stream.defaultReadObject();
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Arrays.java | 41 import java.util.stream.DoubleStream; 42 import java.util.stream.IntStream; 43 import java.util.stream.LongStream; 44 import java.util.stream.Stream; 45 import java.util.stream.StreamSupport; 5032 public static <T> Stream<T> stream(T[] array) { method in class:Arrays 5033 return stream(array, 0, array.length); 5051 public static <T> Stream<T> stream(T[] array, int startInclusive, int endExclusive) { method in class:Arrays 5052 return StreamSupport.stream(spliterator(array, startInclusive, endExclusive), false); 5063 public static IntStream stream(in method in class:Arrays 5081 public static IntStream stream(int[] array, int startInclusive, int endExclusive) { method in class:Arrays 5093 public static LongStream stream(long[] array) { method in class:Arrays 5111 public static LongStream stream(long[] array, int startInclusive, int endExclusive) { method in class:Arrays 5123 public static DoubleStream stream(double[] array) { method in class:Arrays 5141 public static DoubleStream stream(double[] array, int startInclusive, int endExclusive) { method in class:Arrays [all...] |
H A D | GregorianCalendar.java | 3326 private void readObject(ObjectInputStream stream) argument 3328 stream.defaultReadObject();
|
H A D | SimpleTimeZone.java | 1256 * The version of the serialized data on the stream. Possible values: 1258 * <dt><b>0</b> or not present on stream</dt> 1328 // flag useDaylight. When we stream an object out, we translate into an 1624 * Save the state of this object to a stream (i.e., serialize it). 1629 * optional section will be ignored by JDK 1.1 code upon stream in. 1639 private void writeObject(ObjectOutputStream stream) argument 1650 stream.defaultWriteObject(); 1652 // Write out the binary rules in the optional data area of the stream. 1653 stream.writeInt(rules.length); 1654 stream 1669 readObject(ObjectInputStream stream) argument [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | Net.java | 425 static FileDescriptor socket(boolean stream) throws IOException { argument 426 return socket(UNSPEC, stream); 429 static FileDescriptor socket(ProtocolFamily family, boolean stream) argument 433 return IOUtil.newFD(socket0(preferIPv6, stream, false)); 436 static FileDescriptor serverSocket(boolean stream) { argument 437 return IOUtil.newFD(socket0(isIPv6Available(), stream, true)); 441 private static native int socket0(boolean preferIPv6, boolean stream, boolean reuse); argument
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
H A D | LambdaTestHelpers.java | 23 package java.util.stream; 70 public static final Function<Integer, Stream<Integer>> mfId = e -> Collections.singletonList(e).stream(); 71 public static final Function<Integer, Stream<Integer>> mfNull = e -> Collections.<Integer>emptyList().stream(); 76 return l.stream(); 121 return l.stream(); 328 * {@link java.util.stream.LambdaTestHelpers.OmnivorousConsumer}. 341 * {@link java.util.stream.LambdaTestHelpers.OmnivorousConsumer}. 354 * {@link java.util.stream.LambdaTestHelpers.OmnivorousConsumer}.
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
H A D | LambdaTestHelpers.java | 23 package org.openjdk.testlib.java.util.stream; 26 import java.util.stream.*; 71 public static final Function<Integer, Stream<Integer>> mfId = e -> Collections.singletonList(e).stream(); 72 public static final Function<Integer, Stream<Integer>> mfNull = e -> Collections.<Integer>emptyList().stream(); 77 return l.stream(); 122 return l.stream(); 329 * {@link java.util.stream.LambdaTestHelpers.OmnivorousConsumer}. 342 * {@link java.util.stream.LambdaTestHelpers.OmnivorousConsumer}. 355 * {@link java.util.stream.LambdaTestHelpers.OmnivorousConsumer}.
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | SerializationStressTest2.java | 58 // value from the stream will override 191 private void writeObject(ObjectOutputStream stream) throws IOException { argument 192 ObjectOutputStream.PutField fields = stream.putFields(); 196 stream.writeFields(); 197 stream.writeInt(4); 203 stream.writeObject(values); 206 private void readObject(ObjectInputStream stream) throws IOException, argument 208 ObjectInputStream.GetField fields = stream.readFields(); 224 private void writeObject(ObjectOutputStream stream) throws IOException { argument 225 ObjectOutputStream.PutField fields = stream 230 readObject(ObjectInputStream stream) argument [all...] |
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
H A D | ObjectInputStreamTest.java | 407 // is no input stream. 451 // Test 2: Make the stream magic number invalid and check that 465 // Test 3: Make the stream version invalid and check that 948 fail("Unexpected read of corrupted stream"); 1323 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { argument 1324 stream.defaultReadObject(); 1325 stream.registerValidation(new MockObjectInputValidation(), 0);
|
/libcore/ojluni/src/main/java/java/awt/font/ |
H A D | NumericShaper.java | 1488 * object to the {@code stream}. Any enum constants that have no 1491 * @param stream the output stream to write to 1492 * @throws IOException if an I/O error occurs while writing to {@code stream} 1495 private void writeObject(ObjectOutputStream stream) throws IOException { argument 1505 stream.defaultWriteObject();
|