Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 121 - 130 of 1,007 for put (0.01 seconds)

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

        for (String row : elements) {
          table.put(row, 1, 'a');
          table.put(row, 2, 'b');
        }
      }
    
      private static void populateForColumnKeySet(
          Table<Integer, String, Character> table, String[] elements) {
        for (String column : elements) {
          table.put(1, column, 'a');
          table.put(2, column, 'b');
        }
      }
    
      private static void populateForValues(
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  2. build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy

            when:
            repository.put('class', value)
    
            then:
            repository.find('class') == value
            repository.get('class') == value
        }
    
        def findReturnsNullForUnknownClass() {
            expect:
            repository.find('unknown') == null
        }
    
        def getFailsForUnknownClass() {
            given:
            repository.put('unkown', new TestDomainObject('unknown'))
    
            when:
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Sat Apr 06 02:21:33 GMT 2024
    - 3.8K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/MapsTransformValuesTest.java

      }
    
      @Override
      protected Map<String, String> makePopulatedMap() {
        Map<String, Integer> underlying = new HashMap<>();
        underlying.put("a", 1);
        underlying.put("b", 2);
        underlying.put("c", 3);
        return transformValues(underlying, Functions.toStringFunction());
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  4. android/guava-testlib/test/com/google/common/collect/testing/ReserializedSafeTreeMapMapInterfaceTest.java

        super(false, true, true, true, true);
      }
    
      @Override
      protected SortedMap<String, Integer> makePopulatedMap() {
        NavigableMap<String, Integer> map = new SafeTreeMap<>();
        map.put("one", 1);
        map.put("two", 2);
        map.put("three", 3);
        return SerializableTester.reserialize(map);
      }
    
      @Override
      protected SortedMap<String, Integer> makeEmptyMap() throws UnsupportedOperationException {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Mar 18 18:06:40 GMT 2022
    - 1.7K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/collect/UnmodifiableTableColumnMapTest.java

      }
    
      @Override
      protected Map<String, Map<Integer, Character>> makePopulatedMap() {
        Table<Integer, String, Character> table = HashBasedTable.create();
        table.put(1, "foo", 'a');
        table.put(1, "bar", 'b');
        table.put(3, "foo", 'c');
        return unmodifiableTable(table).columnMap();
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 21 14:50:24 GMT 2024
    - 1.5K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

                        TreeBasedTable<String, String, String> table = TreeBasedTable.create();
                        table.put("a", "b", "c");
                        table.put("c", "b", "a");
                        table.put("a", "a", "d");
                        for (Entry<String, String> entry : entries) {
                          table.put("b", entry.getKey(), entry.getValue());
                        }
                        return table.row("b");
                      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        BloomFilter<String> bf1 = BloomFilter.create(Funnels.unencodedCharsFunnel(), 100);
        bf1.put("1");
        bf1.put("2");
    
        BloomFilter<String> bf2 = BloomFilter.create(Funnels.unencodedCharsFunnel(), 100);
        bf2.put("1");
        bf2.put("2");
    
        new EqualsTester().addEqualityGroup(bf1, bf2).testEquals();
    
        bf2.put("3");
    
        new EqualsTester().addEqualityGroup(bf1).addEqualityGroup(bf2).testEquals();
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:19:59 GMT 2025
    - 22.1K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/io/SourceSinkTester.java

          ImmutableMap.<String, String>builder()
              .put("empty", "")
              .put("1 char", "0")
              .put("1 word", "hello")
              .put("2 words", "hello world")
              .put("\\n line break", "hello\nworld")
              .put("\\r line break", "hello\rworld")
              .put("\\r\\n line break", "hello\r\nworld")
              .put("\\n at EOF", "hello\nworld\n")
              .put("\\r at EOF", "hello\nworld\r")
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  9. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenPropertiesLoader.java

                }
                if (name.startsWith(OVERRIDE_PREFIX)) {
                    String overrideName = name.substring(OVERRIDE_PREFIX.length());
                    props.put(overrideName, substVars(value, name, props, callback));
                } else {
                    props.put(name, substVars(value, name, props, callback));
                }
            }
            props.keySet().removeIf(k -> k.startsWith(OVERRIDE_PREFIX));
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 24 17:29:44 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutTester.java

          assertFalse(multimap().put(k, v));
          assertEquals(expectedValues, values);
          assertGet(k, expectedValues);
        }
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testPutDuplicateValue_null() {
        initMultimapWithNullValue();
        assertFalse(multimap().put(getKeyForNullValue(), null));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 2.8K bytes
    - Click Count (0)
Back to Top