Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 249 for ready (1.8 sec)

  1. android/guava/src/com/google/common/hash/AbstractStreamingHasher.java

    import java.nio.ByteBuffer;
    import java.nio.ByteOrder;
    
    /**
     * A convenience base class for implementors of {@code Hasher}; handles accumulating data until an
     * entire "chunk" (of implementation-dependent length) is ready to be hashed.
     *
     * @author Kevin Bourrillion
     * @author Dimitris Andreou
     */
    // TODO(kevinb): this class still needs some design-and-document-for-inheritance love
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/CharSequenceReader.java

          target.put(seq.charAt(pos++));
        }
        return charsToRead;
      }
    
      @Override
      public synchronized int read() throws IOException {
        checkOpen();
        requireNonNull(seq); // safe because of checkOpen
        return hasRemaining() ? seq.charAt(pos++) : -1;
      }
    
      @Override
      public synchronized int read(char[] cbuf, int off, int len) throws IOException {
        checkPositionIndexes(off, off + len, cbuf.length);
        checkOpen();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MapMakerTest.java

        MapMaker maker = new MapMaker();
        try {
          maker.initialCapacity(-1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      // TODO(cpovirk): enable when ready (apparently after a change to our GWT emulation)
      public void xtestInitialCapacity_setTwice() {
        MapMaker maker = new MapMaker().initialCapacity(16);
        try {
          // even to the same value is not allowed
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.JUnit4;
    
    /**
     * Tests for {@link ImmutableGraph} and {@link ImmutableGraph.Builder} that are not ready covered by
     * {@link StandardImmutableDirectedGraphTest}.
     */
    @RunWith(JUnit4.class)
    public class StandardImmutableGraphAdditionalTest {
    
      @Test
      public void immutableGraph() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Jan 09 20:24:43 GMT 2020
    - 4.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

      }
    
      public void testSimpleWithWait() {
        RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
        limiter.acquire(); // R0.00
        stopwatch.sleepMillis(200); // U0.20, we are ready for the next request...
        limiter.acquire(); // R0.00, ...which is granted immediately
        limiter.acquire(); // R0.20
        assertEvents("R0.00", "U0.20", "R0.00", "R0.20");
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.JUnit4;
    
    /**
     * Tests for {@link ImmutableGraph} and {@link ImmutableGraph.Builder} that are not ready covered by
     * {@link StandardImmutableDirectedGraphTest}.
     */
    @RunWith(JUnit4.class)
    public class StandardImmutableGraphAdditionalTest {
    
      @Test
      public void immutableGraph() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jan 09 20:24:43 GMT 2020
    - 4.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        assertEquals(expected, new String(buf));
        assertFullyRead(reader);
    
        // read in chunks to fixed array
        reader = new CharSequenceReader(charSequence);
        buf = new char[5];
        StringBuilder builder = new StringBuilder();
        int read;
        while ((read = reader.read(buf, 0, buf.length)) != -1) {
          builder.append(buf, 0, read);
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/AbstractCompositeHashFunction.java

        }
        this.functions = functions;
      }
    
      /**
       * Constructs a {@code HashCode} from the {@code Hasher} objects of the functions. Each of them
       * has consumed the entire input and they are ready to output a {@code HashCode}. The order of the
       * hashers are the same order as the functions given to the constructor.
       */
      // this could be cleaner if it passed HashCode[], but that would create yet another array...
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

        @GuardedBy("monitor")
        final Map<Service, Stopwatch> startupTimers = Maps.newIdentityHashMap();
    
        /**
         * These two booleans are used to mark the state as ready to start.
         *
         * <p>{@link #ready}: is set by {@link #markReady} to indicate that all listeners have been
         * correctly installed
         *
         * <p>{@link #transitioned}: is set by {@link #transitionService} to indicate that some
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 30.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

      }
    
      public void testSimpleWithWait() {
        RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
        limiter.acquire(); // R0.00
        stopwatch.sleepMillis(200); // U0.20, we are ready for the next request...
        limiter.acquire(); // R0.00, ...which is granted immediately
        limiter.acquire(); // R0.20
        assertEvents("R0.00", "U0.20", "R0.00", "R0.20");
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
Back to top