Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for findOne (0.21 sec)

  1. android/guava/src/com/google/common/collect/Comparators.java

        return least(k, comparator.reversed());
      }
    
      /**
       * Returns the minimum of the two values. If the values compare as 0, the first is returned.
       *
       * <p>The recommended solution for finding the {@code minimum} of some values depends on the type
       * of your data and the number of elements you have. Read more in the Guava User Guide article on
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 11 08:42:51 GMT 2024
    - 10K bytes
    - Viewed (0)
  2. maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/ApiRunner.java

                    return providers.stream()
                            .flatMap(p -> p.provides().stream())
                            .filter(t -> Objects.equals(id, t.id()))
                            .findAny();
                }
            };
        }
    
        @Provides
        static LifecycleRegistry newLifecycleRegistry() {
            return new LifecycleRegistry() {
                @Override
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Iterables.java

       * iterator whether it has any elements <i>remaining</i> (which one does using {@link
       * Iterator#hasNext}).
       *
       * <p><b>{@code Stream} equivalent:</b> {@code !stream.findAny().isPresent()}
       *
       * @return {@code true} if the iterable contains no elements
       */
      public static boolean isEmpty(Iterable<?> iterable) {
        if (iterable instanceof Collection) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                            .flatMap(r -> r.getProblems().stream())
                            .filter(p -> p.getException() instanceof CycleDetectedException)
                            .findAny()
                            .orElse(null);
                    if (cycle != null) {
                        throw new RuntimeException(new ProjectCycleException(
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Comparators.java

      }
    
      /**
       * Returns the minimum of the two values. If the values compare as 0, the first is returned.
       *
       * <p>The recommended solution for finding the {@code minimum} of some values depends on the type
       * of your data and the number of elements you have. Read more in the Guava User Guide article on
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/project/collector/ProjectCollectionStrategy.java

    import java.util.List;
    
    import org.apache.maven.execution.MavenExecutionRequest;
    import org.apache.maven.project.MavenProject;
    import org.apache.maven.project.ProjectBuildingException;
    
    /**
     * Describes strategies for finding projects that Maven could build.
     */
    public interface ProjectCollectionStrategy {
        /**
         *
         * @param request
         * @return
         * @throws ProjectBuildingException
         */
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/plugin/PluginManagerTest.java

        //      a hinting process which helps flesh out the full specification of the plugin. The plugin manager should
        //      only deal in concrete terms -- all version finding mumbo jumbo is a customization to base functionality
        //      the plugin manager provides.
    
        @Test
        void testRemoteResourcesPlugin() throws Exception {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sat Apr 15 17:24:20 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/FluentIterable.java

       * iterable is empty, {@code Optional.absent()} is returned.
       *
       * <p><b>{@code Stream} equivalent:</b> if the goal is to obtain any element, {@link
       * Stream#findAny}; if it must specifically be the <i>first</i> element, {@code Stream#findFirst}.
       *
       * @throws NullPointerException if the first element is null; if this is a possibility, use {@code
    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)
  9. guava/src/com/google/common/collect/Iterables.java

       * iterator whether it has any elements <i>remaining</i> (which one does using {@link
       * Iterator#hasNext}).
       *
       * <p><b>{@code Stream} equivalent:</b> {@code !stream.findAny().isPresent()}
       *
       * @return {@code true} if the iterable contains no elements
       */
      public static boolean isEmpty(Iterable<?> iterable) {
        if (iterable instanceof Collection) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/FinalizableReferenceQueue.java

       * we needn't create a separate loader.
       */
      static class SystemLoader implements FinalizerLoader {
        // This is used by the ClassLoader-leak test in FinalizableReferenceQueueTest to disable
        // finding Finalizer on the system class path even if it is there.
        @VisibleForTesting static boolean disabled;
    
        @Override
        @CheckForNull
        public Class<?> loadFinalizer() {
          if (disabled) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 13.1K bytes
    - Viewed (0)
Back to top