Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 586 for getLamp (0.12 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java

      public void testReplaceAllPreservesOrder() {
        getMap()
            .replaceAll(
                (K k, V v) -> {
                  int index = keys().asList().indexOf(k);
                  return values().asList().get(index + 1);
                });
        List<Entry<K, V>> orderedEntries = getOrderedElements();
        int index = 0;
        for (K key : getMap().keySet()) {
          assertEquals(orderedEntries.get(index).getKey(), key);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t01/ProjectInheritanceTest.java

            assertEquals("p0-org", p0.getOrganization().getName());
    
            // ----------------------------------------------------------------------
            // Check p1 value for org name
            // ----------------------------------------------------------------------
    
            MavenProject p1 = getProject(projectFile("maven.t01", "p1"));
    
            assertEquals("p1-org", p1.getOrganization().getName());
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceEntryTester.java

        try {
          assertTrue(getMap().replace(k0(), v0(), v3()));
          expectReplacement(entry(k0(), v3()));
        } catch (ClassCastException tolerated) { // for ClassToInstanceMap
          expectUnchanged();
        }
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testReplaceEntry_supportedPresentUnchanged() {
        assertTrue(getMap().replace(k0(), v0(), v0()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java

    public class ConcurrentMapRemoveTester<K, V> extends AbstractMapTester<K, V> {
      @Override
      protected ConcurrentMap<K, V> getMap() {
        return (ConcurrentMap<K, V>) super.getMap();
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemove_supportedPresent() {
        assertTrue(getMap().remove(k0(), v0()));
        expectMissing(e0());
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java

    public class ConcurrentMapRemoveTester<K, V> extends AbstractMapTester<K, V> {
      @Override
      protected ConcurrentMap<K, V> getMap() {
        return (ConcurrentMap<K, V>) super.getMap();
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemove_supportedPresent() {
        assertTrue(getMap().remove(k0(), v0()));
        expectMissing(e0());
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/MapToStringTester.java

      public void testToString_minimal() {
        assertNotNull("toString() should not return null", getMap().toString());
      }
    
      @CollectionSize.Require(ZERO)
      @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING)
      public void testToString_size0() {
        assertEquals("emptyMap.toString should return {}", "{}", getMap().toString());
      }
    
      @CollectionSize.Require(ONE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/TypesTest.java

      }
    
      public void testToString() {
        assertEquals(int[].class.getName(), Types.toString(int[].class));
        assertEquals(int[][].class.getName(), Types.toString(int[][].class));
        assertEquals(String[].class.getName(), Types.toString(String[].class));
        Type elementType = List.class.getTypeParameters()[0];
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/TypesTest.java

      }
    
      public void testToString() {
        assertEquals(int[].class.getName(), Types.toString(int[].class));
        assertEquals(int[][].class.getName(), Types.toString(int[][].class));
        assertEquals(String[].class.getName(), Types.toString(String[].class));
        Type elementType = List.class.getTypeParameters()[0];
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  9. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/Parameter.java

        }
    
        public int hashCode() {
            return name.hashCode();
        }
    
        public boolean equals(Object other) {
            return (other instanceof Parameter) && getName().equals(((Parameter) other).getName());
        }
    
        public String getAlias() {
            return alias;
        }
    
        public void setAlias(String alias) {
            this.alias = alias;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

            v3(),
            getMap()
                .compute(
                    k3(),
                    (k, v) -> {
                      assertEquals(k3(), k);
                      assertNull(v);
                      return v3();
                    }));
        expectAdded(e3());
        assertEquals(getNumElements() + 1, getMap().size());
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top