Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,278 for maps (0.3 sec)

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

        assertFalse(entrySet.remove(Maps.immutableEntry(10, 'X')));
        assertTrue(entrySet.remove(Maps.immutableEntry(20, 'X')));
        assertFalse(entrySet.remove(Maps.immutableEntry(15, 'X')));
        entrySet = row.entrySet();
        assertTrue(entrySet.remove(Maps.immutableEntry(10, 'X')));
        assertFalse(entrySet.remove(Maps.immutableEntry(20, 'X')));
        assertFalse(entrySet.remove(Maps.immutableEntry(15, 'X')));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/ElementOrder.java

        }
        return helper.toString();
      }
    
      /** Returns an empty mutable map whose keys will respect this {@link ElementOrder}. */
      <K extends T, V> Map<K, V> createMap(int expectedSize) {
        switch (type) {
          case UNORDERED:
            return Maps.newHashMapWithExpectedSize(expectedSize);
          case INSERTION:
          case STABLE:
            return Maps.newLinkedHashMapWithExpectedSize(expectedSize);
          case SORTED:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 6.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/TreeRangeMap.java

    import com.google.common.base.MoreObjects;
    import com.google.common.base.Predicate;
    import com.google.common.collect.Maps.IteratorBasedAbstractMap;
    import java.util.AbstractMap;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.NavigableMap;
    import java.util.NoSuchElementException;
    import java.util.Set;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Tables.java

        }
    
        @Override
        public Map<R, Map<C, V2>> rowMap() {
          Function<Map<C, V1>, Map<C, V2>> rowFunction =
              new Function<Map<C, V1>, Map<C, V2>>() {
                @Override
                public Map<C, V2> apply(Map<C, V1> row) {
                  return Maps.transformValues(row, function);
                }
              };
          return Maps.transformValues(fromTable.rowMap(), rowFunction);
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 04 22:45:41 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  5. istioctl/pkg/writer/ztunnel/configdump/connections.go

    	"fmt"
    	"net"
    	"strings"
    
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/pkg/maps"
    	"istio.io/istio/pkg/slices"
    )
    
    type ConnectionsFilter struct {
    	Namespace string
    	Direction string
    	Raw       bool
    }
    
    func (c *ConfigWriter) PrintConnectionsDump(filter ConnectionsFilter, outputFormat string) error {
    	d := c.ztunnelDump
    	workloads := maps.Values(d.WorkloadState)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Apr 22 15:39:28 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/JdkBackedImmutableBiMap.java

    final class JdkBackedImmutableBiMap<K, V> extends ImmutableBiMap<K, V> {
      @VisibleForTesting
      static <K, V> ImmutableBiMap<K, V> create(int n, @Nullable Entry<K, V>[] entryArray) {
        Map<K, V> forwardDelegate = Maps.newHashMapWithExpectedSize(n);
        Map<V, K> backwardDelegate = Maps.newHashMapWithExpectedSize(n);
        for (int i = 0; i < n; i++) {
          // requireNonNull is safe because the first `n` elements have been filled in.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/TypeToInstanceMap.java

    import com.google.errorprone.annotations.DoNotMock;
    import java.util.Map;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.NonNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A map, each entry of which maps a {@link TypeToken} to an instance of that type. In addition to
     * implementing {@code Map}, the additional type-safe operations {@link #putInstance} and {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Apr 22 01:15:23 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

        assertThat(multimap.entries())
            .containsExactly(
                Maps.immutableEntry("foo", 1),
                Maps.immutableEntry("foo", 3),
                Maps.immutableEntry("foo", 7),
                Maps.immutableEntry("google", 2),
                Maps.immutableEntry("google", 6),
                Maps.immutableEntry("tree", 0),
                Maps.immutableEntry("tree", 4))
            .inOrder();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ForwardingMap.java

      }
    
      /**
       * A sensible definition of {@link #putAll(Map)} in terms of {@link #put(Object, Object)}. If you
       * override {@link #put(Object, Object)}, you may wish to override {@link #putAll(Map)} to forward
       * to this implementation.
       *
       * @since 7.0
       */
      protected void standardPutAll(Map<? extends K, ? extends V> map) {
        Maps.putAllImpl(this, map);
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/FilteredSortedMapTest.java

      SortedMap<String, Integer> createUnfiltered() {
        return Maps.newTreeMap();
      }
    
      public void testFirstAndLastKeyFilteredMap() {
        SortedMap<String, Integer> unfiltered = createUnfiltered();
        unfiltered.put("apple", 2);
        unfiltered.put("banana", 6);
        unfiltered.put("cat", 3);
        unfiltered.put("dog", 5);
    
        SortedMap<String, Integer> filtered = Maps.filterEntries(unfiltered, CORRECT_LENGTH);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 2.2K bytes
    - Viewed (0)
Back to top