Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 118 for Inversa (0.26 sec)

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

      }
    
      public void testInverseMinimizesWork() {
        ImmutableSetMultimap<String, Character> multimap =
            ImmutableSetMultimap.of("of", 'o', "of", 'f', "to", 't', "to", 'o');
        assertSame(multimap.inverse(), multimap.inverse());
        assertSame(multimap, multimap.inverse().inverse());
      }
    
      private static <K, V> void assertMultimapEquals(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableBiMapFloodingTest.java

                .collect(ImmutableList.toImmutableList()),
            n -> n * Math.log(n),
            ImmutableList.of(
                QueryOp.create("BiMap.get", BiMap::get, Math::log),
                QueryOp.create("BiMap.inverse.get", (bm, o) -> bm.inverse().get(o), Math::log)));
      }
    
      /** All the ways to create an ImmutableBiMap. */
      enum ConstructionPathway {
        COPY_OF_MAP {
          @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/UnsignedInteger.java

       * @since 14.0
       */
      public static UnsignedInteger fromIntBits(int bits) {
        return new UnsignedInteger(bits);
      }
    
      /**
       * Returns an {@code UnsignedInteger} that is equal to {@code value}, if possible. The inverse
       * operation of {@link #longValue()}.
       */
      public static UnsignedInteger valueOf(long value) {
        checkArgument(
            (value & INT_MASK) == value,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 23 18:45:50 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  4. android/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());
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsTest.java

        /* No aliasing on inverse operations. */
        assertSame(unmod.inverse(), unmod.inverse());
        assertSame(unmod, unmod.inverse().inverse());
    
        /* Unmodifiable is a view. */
        mod.put(4, "four");
        assertEquals(true, unmod.get(4).equals("four"));
        assertEquals(true, unmod.inverse().get("four").equals(4));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MapsTest.java

        /* No aliasing on inverse operations. */
        assertSame(unmod.inverse(), unmod.inverse());
        assertSame(unmod, unmod.inverse().inverse());
    
        /* Unmodifiable is a view. */
        mod.put(4, "four");
        assertEquals(true, unmod.get(4).equals("four"));
        assertEquals(true, unmod.inverse().get("four").equals(4));
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  7. 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());
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/package-info.java

     *       as that of its keys. This is sometimes called an "invertible map," since the restriction on
     *       values enables it to support an {@linkplain BiMap#inverse inverse view} -- which is another
     *       instance of {@code BiMap}.
     *   <dt>{@link Table}
     *   <dd>A new type, which is similar to {@link java.util.Map}, but which indexes its values by an
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jul 06 16:29:45 GMT 2023
    - 5K bytes
    - Viewed (0)
  9. 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
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 16:03:42 GMT 2023
    - 22.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Table.java

       *
       * @param columnKey key of column to search for in the table
       * @return the corresponding map from row keys to values
       */
      Map<R, V> column(@ParametricNullness C columnKey);
    
      /**
       * Returns a set of all row key / column key / value triplets. Changes to the returned set will
       * update the underlying table, and vice versa. The cell set does not support the {@code add} or
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 10.7K bytes
    - Viewed (0)
Back to top