Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 320 for compose (0.62 sec)

  1. guava/src/com/google/common/escape/Escapers.java

       */
      public static Escaper nullEscaper() {
        return NULL_ESCAPER;
      }
    
      // An Escaper that efficiently performs no escaping.
      // Extending CharEscaper (instead of Escaper) makes Escapers.compose() easier.
      private static final Escaper NULL_ESCAPER =
          new CharEscaper() {
            @Override
            public String escape(String string) {
              return checkNotNull(string);
            }
    
            @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 26 20:07:17 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  2. 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>
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/escape/Escapers.java

       */
      public static Escaper nullEscaper() {
        return NULL_ESCAPER;
      }
    
      // An Escaper that efficiently performs no escaping.
      // Extending CharEscaper (instead of Escaper) makes Escapers.compose() easier.
      private static final Escaper NULL_ESCAPER =
          new CharEscaper() {
            @Override
            public String escape(String string) {
              return checkNotNull(string);
            }
    
            @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 26 20:07:17 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Maps.java

          Predicate<? super K> keyPredicate) {
        return compose(keyPredicate, Maps.<K>keyFunction());
      }
    
      static <V extends @Nullable Object> Predicate<Entry<?, V>> valuePredicateOnEntries(
          Predicate<? super V> valuePredicate) {
        return compose(valuePredicate, Maps.<V>valueFunction());
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 165.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Maps.java

          Predicate<? super K> keyPredicate) {
        return compose(keyPredicate, Maps.<K>keyFunction());
      }
    
      static <V extends @Nullable Object> Predicate<Entry<?, V>> valuePredicateOnEntries(
          Predicate<? super V> valuePredicate) {
        return compose(valuePredicate, Maps.<V>valueFunction());
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 159.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/RegularImmutableTable.java

                    (rowComparator == null)
                        ? 0
                        : rowComparator.compare(cell1.getRowKey(), cell2.getRowKey());
                if (rowCompare != 0) {
                  return rowCompare;
                }
                return (columnComparator == null)
                    ? 0
                    : columnComparator.compare(cell1.getColumnKey(), cell2.getColumnKey());
              };
          Collections.sort(cells, comparator);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/primitives/UnsignedBytes.java

       *
       * @param a the first {@code byte} to compare
       * @param b the second {@code byte} to compare
       * @return a negative value if {@code a} is less than {@code b}; a positive value if {@code a} is
       *     greater than {@code b}; or zero if they are equal
       */
      public static int compare(byte a, byte b) {
        return toInt(a) - toInt(b);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

    @J2ktIncompatible
    @ElementTypesAreNonnullByDefault
    public final class ArbitraryInstances {
    
      private static final Ordering<Field> BY_FIELD_NAME =
          new Ordering<Field>() {
            @Override
            public int compare(Field left, Field right) {
              return left.getName().compareTo(right.getName());
            }
          };
    
      /**
       * Returns a new {@code MatchResult} that corresponds to a successful match. Apache Harmony (used
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 21K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ComparisonChainTest.java

                    .compare(1.0, 1.0)
                    .compare(1.0f, 1.0f)
                    .compare("a", "a", Ordering.usingToString())
                    .result())
            .isEqualTo(0);
      }
    
      public void testShortCircuitLess() {
        assertThat(
                ComparisonChain.start()
                    .compare("a", "b")
                    .compare(DONT_COMPARE_ME, DONT_COMPARE_ME)
                    .result())
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Ordering.java

       * instead (but note that it does not guarantee which tied minimum element is returned).
       *
       * @param a value to compare, returned if less than or equal to the rest.
       * @param b value to compare
       * @param c value to compare
       * @param rest values to compare
       * @throws ClassCastException if the parameters are not <i>mutually comparable</i> under this
       *     ordering.
       */
      @ParametricNullness
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 39.4K bytes
    - Viewed (0)
Back to top