Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 92 for transformer (0.36 sec)

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

        List<Integer> transformed =
            Lists.transform(
                list,
                new Function<String, Integer>() {
                  @Override
                  public Integer apply(String s) {
                    return Integer.valueOf(s);
                  }
                });
        assertTrue(
            Iterables.removeIf(
                transformed,
                new Predicate<Integer>() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/FluentIterable.java

     * transforms it by invoking {@code toString()} on each element, and returns the first 10 elements
     * as a {@code List}:
     *
     * <pre>{@code
     * ImmutableList<String> results =
     *     FluentIterable.from(database.getClientList())
     *         .filter(Client::isActiveInLastMonth)
     *         .transform(Object::toString)
     *         .limit(10)
     *         .toList();
     * }</pre>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/FluentIterable.java

     * transforms it by invoking {@code toString()} on each element, and returns the first 10 elements
     * as a {@code List}:
     *
     * <pre>{@code
     * ImmutableList<String> results =
     *     FluentIterable.from(database.getClientList())
     *         .filter(Client::isActiveInLastMonth)
     *         .transform(Object::toString)
     *         .limit(10)
     *         .toList();
     * }</pre>
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Collections2.java

       *
       * <p>When a live view is <i>not</i> needed, it may be faster to copy the transformed collection
       * and use the copy.
       *
       * <p>If the input {@code Collection} is known to be a {@code List}, consider {@link
       * Lists#transform}. If only an {@code Iterable} is available, use {@link Iterables#transform}.
       *
       * <p><b>{@code Stream} equivalent:</b> {@link java.util.stream.Stream#map Stream.map}.
       */
    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)
  5. android/guava/src/com/google/common/base/Optional.java

       * <p><b>Java 9 users:</b> some use cases can be written with calls to {@code optional.stream()}.
       *
       * @since 11.0
       */
      public abstract Set<T> asSet();
    
      /**
       * If the instance is present, it is transformed with the given {@link Function}; otherwise,
       * {@link Optional#absent} is returned.
       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> this method is similar to Java 8's {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 13K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

        private static final String WAGON_TRANSPORTER_PRIORITY_KEY = "aether.priority.WagonTransporterFactory";
    
        private static final String APACHE_HTTP_TRANSPORTER_PRIORITY_KEY = "aether.priority.ApacheTransporterFactory";
    
        private static final String JDK_HTTP_TRANSPORTER_PRIORITY_KEY = "aether.priority.JdkTransporterFactory";
    
        private static final String FILE_TRANSPORTER_PRIORITY_KEY = "aether.priority.FileTransporterFactory";
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 27.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/StatsTesting.java

        assertThat(transformation.inverse().isVertical()).isFalse();
        assertThat(transformation.transform(x1)).isWithin(ALLOWED_ERROR).of(y1);
        assertThat(transformation.transform(x1 + xDelta)).isWithin(ALLOWED_ERROR).of(y1 + yDelta);
        assertThat(transformation.inverse().transform(y1)).isWithin(ALLOWED_ERROR).of(x1);
        assertThat(transformation.inverse().transform(y1 + yDelta))
            .isWithin(ALLOWED_ERROR)
            .of(x1 + xDelta);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/MathTesting.java

        POSITIVE_INTEGER_CANDIDATES = intValues.build();
        NEGATIVE_INTEGER_CANDIDATES =
            ImmutableList.copyOf(
                Iterables.concat(
                    Iterables.transform(POSITIVE_INTEGER_CANDIDATES, NEGATE_INT),
                    ImmutableList.of(Integer.MIN_VALUE)));
        NONZERO_INTEGER_CANDIDATES =
            ImmutableList.copyOf(
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/StatsTesting.java

        assertThat(transformation.inverse().isVertical()).isFalse();
        assertThat(transformation.transform(x1)).isWithin(ALLOWED_ERROR).of(y1);
        assertThat(transformation.transform(x1 + xDelta)).isWithin(ALLOWED_ERROR).of(y1 + yDelta);
        assertThat(transformation.inverse().transform(y1)).isWithin(ALLOWED_ERROR).of(x1);
        assertThat(transformation.inverse().transform(y1 + yDelta))
            .isWithin(ALLOWED_ERROR)
            .of(x1 + xDelta);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 23.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      public void testTransform_absent() {
        assertEquals(Optional.absent(), Optional.absent().transform(Functions.identity()));
        assertEquals(Optional.absent(), Optional.absent().transform(Functions.toStringFunction()));
      }
    
      public void testTransform_presentIdentity() {
        assertEquals(Optional.of("a"), Optional.of("a").transform(Functions.identity()));
      }
    
      public void testTransform_presentToString() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top