Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 263 for transform (0.2 sec)

  1. android/guava/src/com/google/common/util/concurrent/ListenableFuture.java

     * asynchronous operations. You can chain them together manually with calls to methods like {@link
     * Futures#transform(ListenableFuture, com.google.common.base.Function, Executor) Futures.transform}
     * (or {@link FluentFuture#transform(com.google.common.base.Function, Executor)
     * FluentFuture.transform}), but you will often find it easier to use a framework. Frameworks
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:13:41 GMT 2023
    - 8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/TransformedIterator.java

        this.backingIterator = checkNotNull(backingIterator);
      }
    
      @ParametricNullness
      abstract T transform(@ParametricNullness F from);
    
      @Override
      public final boolean hasNext() {
        return backingIterator.hasNext();
      }
    
      @Override
      @ParametricNullness
      public final T next() {
        return transform(backingIterator.next());
      }
    
      @Override
      public final void remove() {
        backingIterator.remove();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jul 09 17:31:04 GMT 2021
    - 1.7K bytes
    - Viewed (0)
  3. 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)
  4. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            output.cancel(false);
            throw new MyRuntimeException();
          }
        }
        Transformer transformer = new Transformer();
        SettableFuture<Object> input = SettableFuture.create();
    
        ListenableFuture<Object> output = transform(input, transformer, directExecutor());
        transformer.output = output;
    
        input.set("foo");
        assertTrue(output.isCancelled());
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

         * it.
         */
        setResult(transformResult);
      }
    
      /** Template method for subtypes to actually run the transform. */
      @ForOverride
      @ParametricNullness
      abstract T doTransform(F function, @ParametricNullness I result) throws Exception;
    
      /** Template method for subtypes to actually set the result. */
      @ForOverride
    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)
  6. src/main/java/jcifs/smb1/util/MD4.java

            buffer[i] = b;
            if (i == BLOCK_LENGTH - 1)
                transform(buffer, 0);
        }
    
        /**
         * MD4 block update operation.
         * <p>
         * Continues an MD4 message digest operation, by filling the buffer,
         * transform(ing) data in 512-bit message block(s), updating the variables
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 9.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

        assertThat(f.get()).isEqualTo(CustomRuntimeException.class);
      }
    
      public void testTransform() throws Exception {
        FluentFuture<Integer> f =
            FluentFuture.from(immediateFuture(1))
                .transform(
                    new Function<Integer, Integer>() {
                      @Override
                      public Integer apply(Integer input) {
                        return input + 1;
                      }
                    },
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/AbstractBaseGraph.java

                  return Iterators.unmodifiableIterator(
                      Iterators.concat(
                          Iterators.transform(
                              graph.predecessors(node).iterator(),
                              (N predecessor) -> EndpointPair.ordered(predecessor, node)),
                          Iterators.transform(
                              // filter out 'node' from successors (already covered by predecessors,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/LinearTransformation.java

      }
    
      /**
       * Builds an instance for datasets which contains {@link Double#NaN}. The {@link #isHorizontal}
       * and {@link #isVertical} methods return {@code false} and the {@link #slope}, and {@link
       * #transform} methods all return {@link Double#NaN}. The {@link #inverse} method returns the same
       * instance.
       */
      public static LinearTransformation forNaN() {
        return NaNLinearTransformation.INSTANCE;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  10. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
Back to top