Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 110 for mappings (0.19 sec)

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

          iterator.remove();
          assertEquals(initialSize - 1, map.size());
          // (We can't assert that the values collection no longer contains the
          // removed value, because the underlying map can have multiple mappings
          // to the same value.)
          assertInvariants(map);
          try {
            iterator.remove();
            fail("Expected IllegalStateException.");
          } catch (IllegalStateException expected) {
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (2)
  2. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

              test.remove(rangeToRemove);
              verify(model, test);
            }
          }
        }
      }
    
      // identical to testPutTwoAndRemove,
      // verifies that putCoalescing() doesn't cause any mappings to change relative to put()
      public void testPutCoalescingTwoAndRemove() {
        for (Range<Integer> rangeToPut1 : RANGES) {
          for (Range<Integer> rangeToPut2 : RANGES) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 28K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/escape/ArrayBasedCharEscaper.java

       * replacement mappings.
       *
       * <p>If a character has no mapped replacement then it is checked against the safe range. If it
       * lies outside that, then {@link #escapeUnsafe} is called, otherwise no escaping is performed.
       *
       * @param escaperMap the mapping of characters to be escaped
       * @param safeMin the lowest character value in the safe range
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 6.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java

        return map.size();
      }
    
      /** Returns {@code true} if this map contains no key-value mappings. */
      public boolean isEmpty() {
        return map.isEmpty();
      }
    
      /**
       * Removes all of the mappings from this map. The map will be empty after this call returns.
       *
       * <p>This method is not atomic: the map may not be empty after returning if there were concurrent
       * writes.
       */
      public void clear() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/HashBiMap.java

        return new HashBiMap<>(expectedSize);
      }
    
      /**
       * Constructs a new bimap containing initial values from {@code map}. The bimap is created with an
       * initial capacity sufficient to hold the mappings in the specified map.
       */
      public static <K extends @Nullable Object, V extends @Nullable Object> HashBiMap<K, V> create(
          Map<? extends K, ? extends V> map) {
        HashBiMap<K, V> bimap = create(map.size());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/TreeBasedTable.java

        checkNotNull(rowComparator);
        checkNotNull(columnComparator);
        return new TreeBasedTable<>(rowComparator, columnComparator);
      }
    
      /**
       * Creates a {@code TreeBasedTable} with the same mappings and sort order as the specified {@code
       * TreeBasedTable}.
       */
      public static <R, C, V> TreeBasedTable<R, C, V> create(TreeBasedTable<R, C, ? extends V> table) {
        TreeBasedTable<R, C, V> result =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

    import java.util.List;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.Set;
    import junit.framework.TestCase;
    
    /**
     * {@link LoadingCache} tests that deal with caches that actually contain some key-value mappings.
     *
     * @author mike nonemacher
     */
    
    public class PopulatedCachesTest extends TestCase {
      // we use integers as keys; make sure the range covers some values that ARE cached by
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/HashBasedTable.java

      /**
       * Creates an empty {@code HashBasedTable} with the specified map sizes.
       *
       * @param expectedRows the expected number of distinct row keys
       * @param expectedCellsPerRow the expected number of column key / value mappings in each row
       * @throws IllegalArgumentException if {@code expectedRows} or {@code expectedCellsPerRow} is
       *     negative
       */
      public static <R, C, V> HashBasedTable<R, C, V> create(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

      }
    
      @Override
      boolean isPartialView() {
        return keySet.isPartialView() || valueList.isPartialView();
      }
    
      /** Returns an immutable set of the mappings in this map, sorted by the key ordering. */
      @Override
      public ImmutableSet<Entry<K, V>> entrySet() {
        return super.entrySet();
      }
    
      @Override
      ImmutableSet<Entry<K, V>> createEntrySet() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        return createInstance(factory, tentativeArgs).hashCode()
            == createInstance(factory, args).hashCode();
      }
    
      // distinctValues is a type-safe class-values mapping, but we don't have a type-safe data
      // structure to hold the mappings.
      @SuppressWarnings({"unchecked", "rawtypes"})
      private FreshValueGenerator newFreshValueGenerator() {
        FreshValueGenerator generator =
            new FreshValueGenerator() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
Back to top