Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Transformer (0.17 sec)

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

        EntryTransformer<String, Integer, String> transformer =
            new EntryTransformer<String, Integer, String>() {
              @Override
              public String transformEntry(String key, Integer value) {
                return (value >= 0) ? key : "no" + key;
              }
            };
        Multimap<String, String> transformed = Multimaps.transformEntries(multimap, transformer);
        assertThat(transformed.entries())
            .containsExactly(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 39.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MultimapsTest.java

        EntryTransformer<String, Integer, String> transformer =
            new EntryTransformer<String, Integer, String>() {
              @Override
              public String transformEntry(String key, Integer value) {
                return (value >= 0) ? key : "no" + key;
              }
            };
        Multimap<String, String> transformed = Multimaps.transformEntries(multimap, transformer);
        assertThat(transformed.entries())
            .containsExactly(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.2K bytes
    - Viewed (0)
Back to top