Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 299 for compose (0.18 sec)

  1. guava-tests/test/com/google/common/base/FunctionsTest.java

        Function<? super String, Integer> g = new HashCodeFunction();
        Function<Float, String> f = Functions.forMap(m, "F");
    
        Function<Float, Boolean> c1 = Functions.compose(Functions.compose(h, g), f);
        Function<Float, Boolean> c2 = Functions.compose(h, Functions.compose(g, f));
    
        // Might be nice (eventually) to have:
        //     assertEquals(c1, c2);
    
        // But for now, settle for this:
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/FunctionsTest.java

        Function<? super String, Integer> g = new HashCodeFunction();
        Function<Float, String> f = Functions.forMap(m, "F");
    
        Function<Float, Boolean> c1 = Functions.compose(Functions.compose(h, g), f);
        Function<Float, Boolean> c2 = Functions.compose(h, Functions.compose(g, f));
    
        // Might be nice (eventually) to have:
        //     assertEquals(c1, c2);
    
        // But for now, settle for this:
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/SuppliersTest.java

        new EqualsTester()
            .addEqualityGroup(
                Suppliers.compose(Functions.constant(1), Suppliers.ofInstance("foo")),
                Suppliers.compose(Functions.constant(1), Suppliers.ofInstance("foo")))
            .addEqualityGroup(Suppliers.compose(Functions.constant(2), Suppliers.ofInstance("foo")))
            .addEqualityGroup(Suppliers.compose(Functions.constant(1), Suppliers.ofInstance("bar")))
            .testEquals();
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        new EqualsTester()
            .addEqualityGroup(
                Suppliers.compose(Functions.constant(1), Suppliers.ofInstance("foo")),
                Suppliers.compose(Functions.constant(1), Suppliers.ofInstance("foo")))
            .addEqualityGroup(Suppliers.compose(Functions.constant(2), Suppliers.ofInstance("foo")))
            .addEqualityGroup(Suppliers.compose(Functions.constant(1), Suppliers.ofInstance("bar")))
            .testEquals();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/PredicatesTest.java

        Predicate<String> trimEqualsFoo = Predicates.compose(equalsFoo, trim);
        Function<String, String> identity = Functions.identity();
    
        assertTrue(trimEqualsFoo.apply("Foo"));
        assertTrue(trimEqualsFoo.apply("   Foo   "));
        assertFalse(trimEqualsFoo.apply("Foo-b-que"));
    
        new EqualsTester()
            .addEqualityGroup(trimEqualsFoo, Predicates.compose(equalsFoo, trim))
            .addEqualityGroup(equalsFoo)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Functions.java

       * is defined as the function h such that {@code h(a) == g(f(a))} for each {@code a}.
       *
       * <p><b>Java 8+ users:</b> use {@code g.compose(f)} or (probably clearer) {@code f.andThen(g)}
       * instead.
       *
       * @param g the second function to apply
       * @param f the first function to apply
       * @return the composition of {@code f} and {@code g}
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Suppliers.java

       * call {@code supplier} or invoke {@code function} until it is called.
       */
      public static <F extends @Nullable Object, T extends @Nullable Object> Supplier<T> compose(
          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>
    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)
  8. guava/src/com/google/common/base/Predicates.java

       * predicate returns {@code predicate(function(x))}.
       *
       * @return the composition of the provided function and predicate
       */
      public static <A extends @Nullable Object, B extends @Nullable Object> Predicate<A> compose(
          Predicate<B> predicate, Function<A, ? extends B> function) {
        return new CompositionPredicate<>(predicate, function);
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/TreeRangeMap.java

              @Override
              public boolean removeAll(Collection<?> c) {
                return removeEntryIf(compose(in(c), Maps.<V>valueFunction()));
              }
    
              @Override
              public boolean retainAll(Collection<?> c) {
                return removeEntryIf(compose(not(in(c)), Maps.<V>valueFunction()));
              }
            };
          }
        }
      }
    
      @Override
    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)
  10. android/guava/src/com/google/common/base/Functions.java

       * is defined as the function h such that {@code h(a) == g(f(a))} for each {@code a}.
       *
       * <p><b>Java 8+ users:</b> use {@code g.compose(f)} or (probably clearer) {@code f.andThen(g)}
       * instead.
       *
       * @param g the second function to apply
       * @param f the first function to apply
       * @return the composition of {@code f} and {@code g}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 14.1K bytes
    - Viewed (0)
Back to top