Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 81 for ImmutableEntry (0.04 sec)

  1. android/guava/src/com/google/common/collect/TreeRangeMap.java

    import static com.google.common.base.Predicates.in;
    import static com.google.common.base.Predicates.not;
    import static com.google.common.collect.Iterators.emptyIterator;
    import static com.google.common.collect.Maps.immutableEntry;
    import static java.util.Collections.emptyMap;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.base.MoreObjects;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect.testing.google;
    
    import static com.google.common.collect.Maps.immutableEntry;
    import static java.util.Collections.singleton;
    import static java.util.Collections.unmodifiableList;
    import static junit.framework.TestCase.assertEquals;
    import static junit.framework.TestCase.assertTrue;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 14.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java

     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.Maps.immutableEntry;
    import static com.google.common.truth.Truth.assertThat;
    import static java.lang.Math.max;
    
    import com.google.common.collect.testing.MapTestSuiteBuilder;
    import com.google.common.collect.testing.TestStringMapGenerator;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

            .expectCollects(
                ImmutableMultiset.of("a", "a", "b", "c", "c", "c"),
                Multisets.immutableEntry("a", 1),
                Multisets.immutableEntry("b", 1),
                Multisets.immutableEntry("a", 1),
                Multisets.immutableEntry("c", 3));
      }
    
      public void testToImmutableMultiset_duplicates() {
        class TypeWithDuplicates {
          final int a;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect.testing.google;
    
    import static com.google.common.collect.Maps.immutableEntry;
    import static java.util.Collections.singleton;
    import static java.util.Collections.unmodifiableList;
    import static junit.framework.TestCase.assertEquals;
    import static junit.framework.TestCase.assertTrue;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        ImmutableMap<String, Integer> map =
            new Builder<String, Integer>().put(immutableEntry("one", 1)).buildOrThrow();
        assertMapEquals(map, "one", 1);
      }
    
      public void testBuilder_withImmutableEntryAndNullContents() {
        Builder<String, Integer> builder = new Builder<>();
        assertThrows(
            NullPointerException.class, () -> builder.put(immutableEntry("one", (Integer) null)));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 36.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/RegularImmutableBiMap.java

    import static com.google.common.collect.CollectPreconditions.checkEntryNotNull;
    import static com.google.common.collect.ImmutableMapEntry.createEntryArray;
    import static com.google.common.collect.Maps.immutableEntry;
    import static com.google.common.collect.RegularImmutableMap.MAX_HASH_BUCKET_LENGTH;
    import static com.google.common.collect.RegularImmutableMap.checkNoConflictInKeyBucket;
    import static java.util.Objects.requireNonNull;
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 11K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/TreeRangeMap.java

    import static com.google.common.base.Predicates.in;
    import static com.google.common.base.Predicates.not;
    import static com.google.common.collect.Iterators.emptyIterator;
    import static com.google.common.collect.Maps.immutableEntry;
    import static java.util.Collections.emptyMap;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.base.MoreObjects;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 26.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        // TODO(cgruber): Confirm with fry@ that this is a reasonable substitute.
        // Set<Entry<Object, Object>> entries = map.entrySet();
        // assertThat(entries).containsExactly(
        //    Maps.immutableEntry(three, one), Maps.immutableEntry(one, two));
        // Set<Object> keys = map.keySet();
        // assertThat(keys).containsExactly(one, three);
        // Collection<Object> values = map.values();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        // some tests assume SEVERAL == 3
        if (entries.size() >= 1) {
          a = Multisets.immutableEntry(entries.get(0), sortedMultiset.count(entries.get(0)));
          if (entries.size() >= 3) {
            b = Multisets.immutableEntry(entries.get(1), sortedMultiset.count(entries.get(1)));
            c = Multisets.immutableEntry(entries.get(2), sortedMultiset.count(entries.get(2)));
          }
        }
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 20:14:36 UTC 2024
    - 26K bytes
    - Viewed (0)
Back to top