Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 139 for 20 (0.19 sec)

  1. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

            };
    
        LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder().build(loader);
    
        cache.put(10, 20);
    
        Map<Integer, Integer> map = cache.getAll(ImmutableList.of(10, 20, 30, 54, 443, 1));
    
        assertEquals(Integer.valueOf(20), map.get(10));
        assertEquals(Integer.valueOf(0), map.get(20));
        assertEquals(Integer.valueOf(1), map.get(30));
        assertEquals(Integer.valueOf(2), map.get(54));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 15.1K bytes
    - Viewed (0)
  2. android/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 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

            };
    
        LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder().build(loader);
    
        cache.put(10, 20);
    
        Map<Integer, Integer> map = cache.getAll(ImmutableList.of(10, 20, 30, 54, 443, 1));
    
        assertEquals(Integer.valueOf(20), map.get(10));
        assertEquals(Integer.valueOf(0), map.get(20));
        assertEquals(Integer.valueOf(1), map.get(30));
        assertEquals(Integer.valueOf(2), map.get(54));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 15K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/CountTest.java

    public class CountTest extends TestCase {
      public void testGet() {
        assertEquals(20, new Count(20).get());
      }
    
      public void testGetAndAdd() {
        Count holder = new Count(20);
        assertEquals(20, holder.get());
        holder.add(1);
        assertEquals(21, holder.get());
      }
    
      public void testAddAndGet() {
        Count holder = new Count(20);
        assertEquals(21, holder.addAndGet(1));
      }
    
      public void testGetAndSet() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

      }
    
      public void testJoinNoInterrupt() {
        TimedThread thread = TimedThread.createWithDelay(20);
        thread.joinSuccessfully();
        assertNotInterrupted();
      }
    
      public void testJoinTimeoutNoInterruptNotExpired() {
        TimedThread thread = TimedThread.createWithDelay(20);
        thread.joinSuccessfully(LONG_DELAY_MS);
        assertNotInterrupted();
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 31.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

      public void testParse_maximumWeightRepeated() {
        assertThrows(IllegalArgumentException.class, () -> parse("maximumWeight=10, maximumWeight=20"));
      }
    
      public void testParse_maximumSizeAndMaximumWeight() {
        assertThrows(IllegalArgumentException.class, () -> parse("maximumSize=10, maximumWeight=20"));
      }
    
      public void testParse_concurrencyLevel() {
        CacheBuilderSpec spec = parse("concurrencyLevel=32");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

      }
    
      public void testJoinNoInterrupt() {
        TimedThread thread = TimedThread.createWithDelay(20);
        thread.joinSuccessfully();
        assertNotInterrupted();
      }
    
      public void testJoinTimeoutNoInterruptNotExpired() {
        TimedThread thread = TimedThread.createWithDelay(20);
        thread.joinSuccessfully(LONG_DELAY_MS);
        assertNotInterrupted();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 30.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/HashMultimapTest.java

        HashMultimap<String, Integer> multimap = HashMultimap.create(20, 15);
        multimap.put("foo", 1);
        multimap.put("bar", 2);
        multimap.put("foo", 3);
        assertEquals(ImmutableSet.of(1, 3), multimap.get("foo"));
        assertEquals(15, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromIllegalSizes() {
        try {
          HashMultimap.create(-20, 15);
          fail();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  9. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

        assertEquals(3, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromSizes() {
        ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(15, 20);
        assertEquals(20, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromIllegalSizes() {
        try {
          ArrayListMultimap.create(15, -2);
          fail();
        } catch (IllegalArgumentException expected) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 6.6K bytes
    - Viewed (0)
Back to top