Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Supplier (0.18 sec)

  1. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java

            Supplier<T> s = asSupplier(supplier);
            if (cache == null) {
                return s.get();
            } else {
                return cache.computeIfAbsent(groupId, artifactId, version, tag, s);
            }
        }
    
        private static <T> T cache(ModelCache cache, Source source, String tag, Callable<T> supplier) {
            Supplier<T> s = asSupplier(supplier);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri May 03 08:48:38 GMT 2024
    - 61.5K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

            protected Activation.Builder transformActivation_ActiveByDefault(
                    Supplier<? extends Activation.Builder> creator, Activation.Builder builder, Activation target) {
                return builder;
            }
    
            @Override
            protected Activation.Builder transformActivation_File(
                    Supplier<? extends Activation.Builder> creator, Activation.Builder builder, Activation target) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 13:13:07 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Multimaps.java

              java.util.function.Supplier<M> multimapSupplier) {
        return CollectCollectors.<T, K, V, M>toMultimap(keyFunction, valueFunction, multimapSupplier);
      }
    
      /**
       * Returns a {@code Collector} accumulating entries into a {@code Multimap} generated from the
       * specified supplier. Each input element is mapped to a key and a stream of values, each of which
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

            throw (T) t; // rely on vacuous cast
        }
    
        static class LazyMap<K, V> extends AbstractMap<K, V> {
            private final Supplier<Map<K, V>> supplier;
            private volatile Map<K, V> delegate;
    
            LazyMap(Supplier<Map<K, V>> supplier) {
                this.supplier = supplier;
            }
    
            @Override
            public Set<Entry<K, V>> entrySet() {
                if (delegate == null) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/SetsTest.java

      }
    
      private static <A extends @Nullable Object> void genericTestToImmutableEnumSetReused(
          Collector<SomeEnum, A, ImmutableSet<SomeEnum>> collector) {
        A accumulator = collector.supplier().get();
        BiConsumer<A, SomeEnum> adder = collector.accumulator();
        adder.accept(accumulator, SomeEnum.A);
        adder.accept(accumulator, SomeEnum.B);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

        }
        return false;
      }
    
      /**
       * Sets the result of this {@code Future} to match the supplied input {@code Future} once the
       * supplied {@code Future} is done, unless this {@code Future} has already been cancelled or set
       * (including "set asynchronously," defined below).
       *
       * <p>If the supplied future is {@linkplain #isDone done} when this method is called and the call
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Preconditions.java

       * string of size {@code size}, and are in order. A position index may range from zero to {@code
       * size}, inclusive.
       *
       * @param start a user-supplied index identifying a starting position in an array, list or string
       * @param end a user-supplied index identifying an ending position in an array, list or string
       * @param size the size of that array, list or string
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Iterators.java

          }
    
          @Override
          public void remove() {
            iterator.remove();
          }
        };
      }
    
      /**
       * Returns a view of the supplied {@code iterator} that removes each element from the supplied
       * {@code iterator} as it is returned.
       *
       * <p>The provided iterator must support {@link Iterator#remove()} or else the returned iterator
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/Futures.java

              },
              executor);
        }
      }
    
      /**
       * Returns a {@code ListenableFuture} whose result is set from the supplied future when it
       * completes. Cancelling the supplied future will also cancel the returned future, but cancelling
       * the returned future will have no effect on the supplied future.
       *
       * @since 15.0
       */
      public static <V extends @Nullable Object> ListenableFuture<V> nonCancellationPropagating(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/project/MavenProject.java

            return buffer.toString();
        }
    
        /**
         * Sets the value of the context value of this project identified by the given key. If the supplied value is
         * <code>null</code>, the context value is removed from this project. Context values are intended to allow core
         * extensions to associate derived state with project instances.
         */
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 56.6K bytes
    - Viewed (0)
Back to top