Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 355 for inverse (0.05 seconds)

  1. android/guava/src/com/google/common/graph/DirectedNetworkConnections.java

        return Collections.unmodifiableSet(((BiMap<E, N>) outEdgeMap).values());
      }
    
      @Override
      public Set<E> edgesConnecting(N node) {
        return new EdgesConnecting<>(((BiMap<E, N>) outEdgeMap).inverse(), node);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 2.1K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/HashBiMapTest.java

        assertThat(bimap.get("canada")).isEqualTo("dollar");
        assertThat(bimap.inverse().get("dollar")).isEqualTo("canada");
      }
    
      private static final int N = 1000;
    
      public void testBashIt() throws Exception {
        BiMap<Integer, Integer> bimap = HashBiMap.create(N);
        BiMap<Integer, Integer> inverse = bimap.inverse();
    
        for (int i = 0; i < N; i++) {
          assertThat(bimap.put(2 * i, 2 * i + 1)).isNull();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableBiMap.java

        return new Builder<K, V>().putAll(entries).build();
      }
    
      ImmutableBiMap(Map<K, V> delegate) {
        super(delegate);
      }
    
      public abstract ImmutableBiMap<V, K> inverse();
    
      @Override
      public ImmutableSet<V> values() {
        return inverse().keySet();
      }
    
      public final @Nullable V forcePut(K key, V value) {
        throw new UnsupportedOperationException();
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 18:32:41 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/ImmutableBiMap.java

       * {@inheritDoc}
       *
       * <p>The inverse of an {@code ImmutableBiMap} is another {@code ImmutableBiMap}.
       */
      @Override
      public abstract ImmutableBiMap<V, K> inverse();
    
      /**
       * Returns an immutable set of the values in this map, in the same order they appear in {@link
       * #entrySet}.
       */
      @Override
      public ImmutableSet<V> values() {
        return inverse().keySet();
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 22.2K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/ImmutableSetMultimap.java

       */
      @Override
      public ImmutableSetMultimap<V, K> inverse() {
        ImmutableSetMultimap<V, K> result = inverse;
        return (result == null) ? (inverse = invert()) : result;
      }
    
      private ImmutableSetMultimap<V, K> invert() {
        Builder<V, K> builder = builder();
        for (Entry<K, V> entry : entries()) {
          builder.put(entry.getValue(), entry.getKey());
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 19 22:57:35 GMT 2026
    - 26.1K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/Synchronized.java

            return delegate().forcePut(key, value);
          }
        }
    
        @Override
        public BiMap<V, K> inverse() {
          synchronized (mutex) {
            if (inverse == null) {
              inverse = new SynchronizedBiMap<>(delegate().inverse(), mutex, this);
            }
            return inverse;
          }
        }
    
        @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Aug 08 15:11:10 GMT 2025
    - 53K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/DiscreteDomain.java

          }
        }
        return current;
      }
    
      /**
       * Returns the unique least value of type {@code C} that is greater than {@code value}, or {@code
       * null} if none exists. Inverse operation to {@link #previous}.
       *
       * @param value any value of type {@code C}
       * @return the least value greater than {@code value}, or {@code null} if {@code value} is {@code
       *     maxValue()}
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/Synchronized.java

            return delegate().forcePut(key, value);
          }
        }
    
        @Override
        public BiMap<V, K> inverse() {
          synchronized (mutex) {
            if (inverse == null) {
              inverse = new SynchronizedBiMap<>(delegate().inverse(), mutex, this);
            }
            return inverse;
          }
        }
    
        @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Aug 08 15:11:10 GMT 2025
    - 56.9K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/collect/HashBiMapTest.java

        assertThat(bimap.get("canada")).isEqualTo("dollar");
        assertThat(bimap.inverse().get("dollar")).isEqualTo("canada");
      }
    
      private static final int N = 1000;
    
      public void testBashIt() throws Exception {
        BiMap<Integer, Integer> bimap = HashBiMap.create(N);
        BiMap<Integer, Integer> inverse = bimap.inverse();
    
        for (int i = 0; i < N; i++) {
          assertThat(bimap.put(2 * i, 2 * i + 1)).isNull();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/ImmutableBiMap.java

       * {@inheritDoc}
       *
       * <p>The inverse of an {@code ImmutableBiMap} is another {@code ImmutableBiMap}.
       */
      @Override
      public abstract ImmutableBiMap<V, K> inverse();
    
      /**
       * Returns an immutable set of the values in this map, in the same order they appear in {@link
       * #entrySet}.
       */
      @Override
      public ImmutableSet<V> values() {
        return inverse().keySet();
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 22.7K bytes
    - Click Count (0)
Back to Top