Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 225 for Stream (0.18 sec)

  1. android/guava/src/com/google/common/collect/FluentIterable.java

       * iterator supports it.
       *
       * <p><b>{@code Stream} equivalent:</b> to concatenate an arbitrary number of streams, use {@code
       * Stream.of(stream1, stream2, ...).flatMap(s -> s)}. If the sources are iterables, use {@code
       * Stream.of(iter1, iter2, ...).flatMap(Streams::stream)}.
       *
       * @throws NullPointerException if any of the provided iterables is {@code null}
       * @since 20.0
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/collect/StreamsBenchmark.java

            }
          }
        },
        STREAMS_FIND_LAST {
          @Override
          Object operate(Stream<?> stream) {
            return Streams.findLast(stream);
          }
        },
        REDUCE_LAST {
          @Override
          Object operate(Stream<?> stream) {
            return stream.reduce((a, b) -> b);
          }
        },
        REDUCE_LAST_PARALLEL {
          @Override
          Object operate(Stream<?> stream) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 03 19:39:41 GMT 2016
    - 2.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ArrayListMultimap.java

      @J2ktIncompatible
      private void writeObject(ObjectOutputStream stream) throws IOException {
        stream.defaultWriteObject();
        Serialization.writeMultimap(this, stream);
      }
    
      @GwtIncompatible // java.io.ObjectOutputStream
      @J2ktIncompatible
      private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
        stream.defaultReadObject();
        expectedValuesPerKey = DEFAULT_VALUES_PER_KEY;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/EnumMultiset.java

        return Multisets.iteratorImpl(this);
      }
    
      @GwtIncompatible // java.io.ObjectOutputStream
      private void writeObject(ObjectOutputStream stream) throws IOException {
        stream.defaultWriteObject();
        stream.writeObject(type);
        Serialization.writeMultiset(this, stream);
      }
    
      /**
       * @serialData the {@code Class<E>} for the enum type, the number of distinct elements, the first
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/CharSinkTest.java

      }
    
      public void testWriteLines_stream() throws IOException {
        sink.writeLines(ImmutableList.of("foo", "bar", "baz").stream());
        String separator = System.getProperty("line.separator");
        assertEquals("foo" + separator + "bar" + separator + "baz" + separator, sink.getString());
      }
    
      public void testWriteLines_stream_separator() throws IOException {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/CountingOutputStream.java

    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public final class CountingOutputStream extends FilterOutputStream {
    
      private long count;
    
      /**
       * Wraps another output stream, counting the number of bytes written.
       *
       * @param out the output stream to be wrapped
       */
      public CountingOutputStream(OutputStream out) {
        super(checkNotNull(out));
      }
    
      /** Returns the number of bytes written. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/CollectSpliteratorsTest.java

    import com.google.common.base.Ascii;
    import com.google.common.collect.testing.SpliteratorTester;
    import java.util.Arrays;
    import java.util.List;
    import java.util.Spliterator;
    import java.util.stream.DoubleStream;
    import java.util.stream.IntStream;
    import java.util.stream.LongStream;
    import junit.framework.TestCase;
    
    /** Tests for {@code CollectSpliterators}. */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/CompactHashSet.java

      private void writeObject(ObjectOutputStream stream) throws IOException {
        stream.defaultWriteObject();
        stream.writeInt(size());
        for (E e : this) {
          stream.writeObject(e);
        }
      }
    
      @SuppressWarnings("unchecked")
      @J2ktIncompatible
      private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
        stream.defaultReadObject();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/CharSink.java

       */
      public abstract Writer openStream() throws IOException;
    
      /**
       * Opens a new buffered {@link Writer} for writing to this sink. The returned stream is not
       * required to be a {@link BufferedWriter} in order to allow implementations to simply delegate to
       * {@link #openStream()} when the stream returned by that method does not benefit from additional
       * buffering. This method returns a new, independent writer each time it is called.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/CharSinkTester.java

        String separator = System.getProperty("line.separator");
        sink.writeLines(lines.stream());
    
        assertContainsExpectedLines(separator);
      }
    
      public void testWriteLinesStream_specificSeparator() throws IOException {
        String separator = "\r\n";
        sink.writeLines(lines.stream(), separator);
    
        assertContainsExpectedLines(separator);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 4.4K bytes
    - Viewed (0)
Back to top