Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 261 for Data (0.13 sec)

  1. android/guava-tests/test/com/google/common/io/ByteSinkTester.java

        }
        return suite;
      }
    
      private ByteSink sink;
    
      ByteSinkTester(
          ByteSinkFactory factory, byte[] data, String suiteName, String caseDesc, Method method) {
        super(factory, data, suiteName, caseDesc, method);
      }
    
      @Override
      protected void setUp() throws Exception {
        sink = factory.createSink();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 4K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/TestSetMultimapGenerator.java

    package com.google.common.collect.testing.google;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.SetMultimap;
    
    /**
     * A generator for {@code SetMultimap} implementations based on test data.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    public interface TestSetMultimapGenerator<K, V>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 21 02:27:51 GMT 2017
    - 990 bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/LinkedListMultimap.java

        keyToKeyList = CompactLinkedHashMap.create();
        int size = stream.readInt();
        for (int i = 0; i < size; i++) {
          @SuppressWarnings("unchecked") // reading data stored by writeObject
          K key = (K) stream.readObject();
          @SuppressWarnings("unchecked") // reading data stored by writeObject
          V value = (V) stream.readObject();
          put(key, value);
        }
      }
    
      @GwtIncompatible // java serialization not supported
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 27.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/ByteProcessor.java

       * should process the bytes from {@code buf[off]} through {@code buf[off + len - 1]} (inclusive).
       *
       * @param buf the byte array containing the data to process
       * @param off the initial offset into the array
       * @param len the length of data to be processed
       * @return true to continue processing, false to stop
       */
      @CanIgnoreReturnValue // some uses know that their processor never returns false
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/TopKSelector.java

     * comparator. "Top" can mean the greatest or the lowest elements, specified in the factory used to
     * create the {@code TopKSelector} instance.
     *
     * <p>If your input data is available as an {@link Iterable} or {@link Iterator}, prefer {@link
     * Ordering#leastOf(Iterable, int)}, which provides the same implementation with an interface
     * tailored to that use case.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        assertEquals(Double.longBitsToDouble(0x1234567876543210L), in.readDouble(), 0.0);
      }
    
      public void testNewDataInput_readUTF() {
        byte[] data = new byte[17];
        data[1] = 15;
        System.arraycopy("Kilroy was here".getBytes(Charsets.UTF_8), 0, data, 2, 15);
        ByteArrayDataInput in = ByteStreams.newDataInput(data);
        assertEquals("Kilroy was here", in.readUTF());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (1)
  7. guava-tests/test/com/google/common/io/ByteSourceTester.java

        super(factory, bytes, suiteName, caseDesc, method);
      }
    
      @Override
      public void setUp() throws IOException {
        source = factory.createSource(data);
      }
    
      public void testOpenStream() throws IOException {
        InputStream in = source.openStream();
        try {
          byte[] readBytes = ByteStreams.toByteArray(in);
          assertExpectedBytes(readBytes);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/ByteSource.java

       * eagerly fetches data for each source when iterated (rather than producing sources that only
       * load data through their streams). Prefer using the {@link #concat(Iterable)} overload if
       * possible.
       *
       * @param sources the sources to concatenate
       * @return a {@code ByteSource} containing the concatenated data
       * @throws NullPointerException if any of {@code sources} is {@code null}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/Helpers.java

        return new AbstractList<T>() {
          ArrayList<T> data = new ArrayList<>();
    
          @Override
          public int size() {
            return Math.max(0, data.size() + delta);
          }
    
          @Override
          public T get(int index) {
            return data.get(index);
          }
    
          @Override
          public T set(int index, T element) {
            return data.set(index, element);
          }
    
          @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/AbstractIterator.java

     * interface easier to implement for certain types of data sources.
     *
     * <p>{@code Iterator} requires its implementations to support querying the end-of-data status
     * without changing the iterator's state, using the {@link #hasNext} method. But many data sources,
     * such as {@link java.io.Reader#read()}, do not expose this information; the only way to discover
     * whether there is any data left is by trying to retrieve it. These types of data sources are
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Mar 18 02:04:10 GMT 2022
    - 6.4K bytes
    - Viewed (0)
Back to top