Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 172 for function (0.35 sec)

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

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Function;
    import com.google.common.base.Functions;
    import com.google.common.collect.testing.MapInterfaceTest;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.Set;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Suppliers.java

          Function<? super F, T> function, Supplier<F> supplier) {
        return new SupplierComposition<>(function, supplier);
      }
    
      private static class SupplierComposition<F extends @Nullable Object, T extends @Nullable Object>
          implements Supplier<T>, Serializable {
        final Function<? super F, T> function;
        final Supplier<F> supplier;
    
        SupplierComposition(Function<? super F, T> function, Supplier<F> supplier) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Collections2.java

          Collection<F> fromCollection, Function<? super F, T> function) {
        return new TransformedCollection<>(fromCollection, function);
      }
    
      static class TransformedCollection<F extends @Nullable Object, T extends @Nullable Object>
          extends AbstractCollection<T> {
        final Collection<F> fromCollection;
        final Function<? super F, ? extends T> function;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

                .withFeatures(COLLECTION_FEATURES_REMOVE_ORDER)
                .withFeatures(CollectionFeature.SUPPORTS_ITERATOR_REMOVE)
                .createTestSuite());
    
        final Function<String, String> removeFirstCharacter =
            new Function<String, String>() {
              @Override
              public String apply(String input) {
                return input.substring(1);
              }
            };
    
        suite.addTest(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Collections2.java

          Collection<F> fromCollection, Function<? super F, T> function) {
        return new TransformedCollection<>(fromCollection, function);
      }
    
      static class TransformedCollection<F extends @Nullable Object, T extends @Nullable Object>
          extends AbstractCollection<T> {
        final Collection<F> fromCollection;
        final Function<? super F, ? extends T> function;
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableListMultimap.java

    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.util.Collection;
    import java.util.Comparator;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.function.Function;
    import java.util.stream.Collector;
    import java.util.stream.Stream;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 17.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java

        }
      }
    
      private static String encode(String str) {
        return BaseEncoding.base64().encode(str.getBytes(Charsets.UTF_8));
      }
    
      private static final Function<String, String> DECODE_FUNCTION =
          new Function<String, String>() {
            @Override
            public String apply(String input) {
              return new String(BaseEncoding.base64().decode(input), Charsets.UTF_8);
            }
          };
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/TableCollectorsTest.java

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.Equivalence;
    import com.google.common.base.Function;
    import com.google.common.base.MoreObjects;
    import com.google.common.collect.Table.Cell;
    import com.google.common.testing.CollectorTester;
    import java.util.function.BiPredicate;
    import java.util.function.BinaryOperator;
    import java.util.stream.Collector;
    import java.util.stream.Stream;
    import junit.framework.TestCase;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 16:03:18 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/OptionalTest.java

                          });
          fail("Should throw if Function returns null.");
        } catch (NullPointerException expected) {
        }
      }
    
      public void testTransform_absent_functionReturnsNull() {
        assertEquals(
            Optional.absent(),
            Optional.absent()
                .transform(
                    (Function<Object, Object>)
                        new Function<Object, @Nullable Object>() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

          extends AbstractTransformFuture<I, O, Function<? super I, ? extends O>, O> {
        TransformFuture(
            ListenableFuture<? extends I> inputFuture, Function<? super I, ? extends O> function) {
          super(inputFuture, function);
        }
    
        @Override
        @ParametricNullness
        O doTransform(Function<? super I, ? extends O> function, @ParametricNullness I input) {
          return function.apply(input);
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
Back to top