Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for hasLength (0.09 sec)

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

        map.put(1, "a");
        map.put(4, "b");
        map.put(3, "d");
        map.put(2, "c");
        map.trimToSize();
        assertThat(map.entries).hasLength(4);
        assertThat(map.keys).hasLength(4);
        assertThat(map.values).hasLength(4);
        assertThat(map.links).hasLength(4);
        assertEquals(4, map.size());
        testHasMapEntriesInOrder(map, 1, "a", 4, "b", 3, "d", 2, "c");
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/CompactHashMapTest.java

        for (int i = 0; i < 10; i++) {
          map.put(i, Integer.toString(i));
        }
        map.trimToSize();
        assertThat(map.entries).hasLength(10);
        assertThat(map.keys).hasLength(10);
        assertThat(map.values).hasLength(10);
        assertEquals(10, map.size());
        for (int i = 0; i < 10; i++) {
          assertEquals(Integer.toString(i), map.get(i));
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java

        map.put(1, "a");
        map.put(4, "b");
        map.put(3, "d");
        map.put(2, "c");
        map.trimToSize();
        assertThat(map.entries).hasLength(4);
        assertThat(map.keys).hasLength(4);
        assertThat(map.values).hasLength(4);
        assertThat(map.links).hasLength(4);
        assertEquals(4, map.size());
        testHasMapEntriesInOrder(map, 1, "a", 4, "b", 3, "d", 2, "c");
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/CompactLinkedHashSetTest.java

        assertThat(set.needsAllocArrays()).isTrue();
        assertThat(set.elements).isNull();
    
        set.add(1);
        assertThat(set.needsAllocArrays()).isFalse();
        assertThat(set.elements).hasLength(CompactHashing.DEFAULT_SIZE);
      }
    
      public void testAllocArraysExpectedSize() {
        for (int i = 0; i <= CompactHashing.DEFAULT_SIZE; i++) {
          CompactHashSet<Integer> set = CompactHashSet.createWithExpectedSize(i);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/CompactHashSetTest.java

        assertThat(set.needsAllocArrays()).isTrue();
        assertThat(set.elements).isNull();
    
        set.add(1);
        assertThat(set.needsAllocArrays()).isFalse();
        assertThat(set.elements).hasLength(CompactHashing.DEFAULT_SIZE);
      }
    
      public void testAllocArraysExpectedSize() {
        for (int i = 0; i <= CompactHashing.DEFAULT_SIZE; i++) {
          CompactHashSet<Integer> set = CompactHashSet.createWithExpectedSize(i);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        LoadingCache<?, ?> cache = CacheBuilder.newBuilder().initialCapacity(5).build(identityLoader());
        LocalCache<?, ?> map = CacheTesting.toLocalCache(cache);
    
        assertThat(map.segments).hasLength(4);
        assertEquals(2, map.segments[0].table.length());
        assertEquals(2, map.segments[1].table.length());
        assertEquals(2, map.segments[2].table.length());
        assertEquals(2, map.segments[3].table.length());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

        Constructor<WithConstructorAndTypeParameter> constructor = type.getDeclaredConstructor();
        Invokable<?, ?> factory = Invokable.from(constructor);
        assertThat(factory.getTypeParameters()).hasLength(2);
        assertEquals(type.getTypeParameters()[0], factory.getTypeParameters()[0]);
        assertEquals(constructor.getTypeParameters()[0], factory.getTypeParameters()[1]);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/InvokableTest.java

        Constructor<WithConstructorAndTypeParameter> constructor = type.getDeclaredConstructor();
        Invokable<?, ?> factory = Invokable.from(constructor);
        assertThat(factory.getTypeParameters()).hasLength(2);
        assertEquals(type.getTypeParameters()[0], factory.getTypeParameters()[0]);
        assertEquals(constructor.getTypeParameters()[0], factory.getTypeParameters()[1]);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/reflect/SubtypeTester.java

            tester.method = method;
            method.invoke(tester, new Object[] {null});
          }
        }
      }
    
      private Type getOnlyParameterType() {
        assertThat(method.getGenericParameterTypes()).hasLength(1);
        return method.getGenericParameterTypes()[0];
      }
    
      @SuppressWarnings({"rawtypes", "unchecked"})
      private static Type getSupertype(Type type, Class<?> superclass) {
        Class rawType = superclass;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

            tester.method = method;
            method.invoke(tester, new Object[] {null});
          }
        }
      }
    
      private Type getOnlyParameterType() {
        assertThat(method.getGenericParameterTypes()).hasLength(1);
        return method.getGenericParameterTypes()[0];
      }
    
      @SuppressWarnings({"rawtypes", "unchecked"})
      private static Type getSupertype(Type type, Class<?> superclass) {
        Class rawType = superclass;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 6.1K bytes
    - Viewed (0)
Back to top