Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 122 for 20 (0.15 sec)

  1. android/guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

      public void testColumnKeySet_isSorted() {
        table =
            create(
                "a", 2, 'X', "a", 2, 'X', "b", 3, 'X', "b", 2, 'X', "c", 10, 'X', "c", 10, 'X', "c", 20,
                'X', "d", 15, 'X', "d", 20, 'X', "d", 1, 'X', "e", 5, 'X');
        assertEquals("[1, 2, 3, 5, 10, 15, 20]", table.columnKeySet().toString());
      }
    
      public void testColumnKeySet_isSortedWithRealComparator() {
        table =
            create(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/HashBasedTableTest.java

        table1.put("foo", 1, 'a');
        assertEquals((Character) 'a', table1.get("foo", 1));
    
        Table<String, Integer, Character> table2 = HashBasedTable.create(100, 0);
        table2.put("foo", 1, 'a');
        assertEquals((Character) 'a', table2.get("foo", 1));
    
        Table<String, Integer, Character> table3 = HashBasedTable.create(0, 20);
        table3.put("foo", 1, 'a');
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

                            mapEntry(Range.atMost(-1), "fruitcake"),
                            mapEntry(Range.open(10, 15), "elephant"),
                            mapEntry(Range.closed(20, 22), "umbrella"));
                      }
    
                      @Override
                      public Map<Range<Integer>, String> create(Object... elements) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 28K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

      }
    
      // Tests from RFC2022: https://tools.ietf.org/html/rfc2202
    
      public void testRfc2202_hmacSha1_case1() {
        byte[] key = fillByteArray(20, 0x0b);
        String data = "Hi There";
    
        checkSha1("b617318655057264e28bc0b6fb378c8ef146be00", key, data);
      }
    
      public void testRfc2202_hmacSha1_case2() {
        byte[] key = "Jefe".getBytes(UTF_8);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/SetsTest.java

        assertEquals(empty, Sets.subSet(set, Range.atLeast(20)));
    
        assertEquals(set, Sets.subSet(set, Range.greaterThan(0)));
        assertEquals(ImmutableSortedSet.of(6, 8, 10), Sets.subSet(set, Range.greaterThan(4)));
        assertEquals(ImmutableSortedSet.of(8, 10), Sets.subSet(set, Range.greaterThan(7)));
        assertEquals(empty, Sets.subSet(set, Range.greaterThan(20)));
    
        assertEquals(empty, Sets.subSet(set, Range.lessThan(0)));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java

        assertEquals(RESULT_DATA, resultFuture.get());
      }
    
      public void testFutureGetThrowsRuntimeException() throws Exception {
        BadFuture badInput = new BadFuture(Futures.immediateFuture(20));
        ListenableFuture<String> chain = buildChainingFuture(badInput);
        ExecutionException e = assertThrows(ExecutionException.class, () -> chain.get());
        assertSame(RuntimeException.class, e.getCause().getClass());
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/CountingInputStreamTest.java

      }
    
      public void testSkipEOF() throws IOException {
        assertEquals(20, counter.skip(30));
        assertEquals(20, counter.getCount());
        assertEquals(0, counter.skip(20));
        assertEquals(20, counter.getCount());
    
        // Test reading a single byte while we're in the right state
        assertEquals(-1, counter.read());
        assertEquals(20, counter.getCount());
      }
    
      public void testReadArrayEOF() throws IOException {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

      public void testColumnKeySet_isSorted() {
        table =
            create(
                "a", 2, 'X', "a", 2, 'X', "b", 3, 'X', "b", 2, 'X', "c", 10, 'X', "c", 10, 'X', "c", 20,
                'X', "d", 15, 'X', "d", 20, 'X', "d", 1, 'X', "e", 5, 'X');
        assertEquals("[1, 2, 3, 5, 10, 15, 20]", table.columnKeySet().toString());
      }
    
      public void testColumnKeySet_isSortedWithRealComparator() {
        table =
            create(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

        waitingThread.start();
        for (int i = 0; i < times; i++) {
          waitingThread.interrupt();
        }
    
        future.set(RESULT);
    
        assertEquals(times > 0, (boolean) interruptReporter.get(20, SECONDS));
      }
    
      /**
       * Confirms that the test code triggers {@link InterruptedException} in a standard {@link Future}.
       */
      public void testMakeUninterruptible_plainFutureSanityCheck() throws Exception {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

       *
       * <p>The behavior of the {@code RateLimiter} is not modified in any other way, e.g. if the {@code
       * RateLimiter} was configured with a warmup period of 20 seconds, it still has a warmup period of
       * 20 seconds after this method invocation.
       *
       * @param permitsPerSecond the new stable rate of this {@code RateLimiter}
       * @throws IllegalArgumentException if {@code permitsPerSecond} is negative or zero
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 18.2K bytes
    - Viewed (0)
Back to top