- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for findOne (0.14 sec)
-
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 May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 10.2K bytes - Viewed (0) -
maven-compat/src/test/java/org/apache/maven/SimpleLookup.java
} @Override public <T> T lookup(Class<T> type) { return objects.stream() .filter(type::isInstance) .map(type::cast) .findAny() .orElseThrow(() -> new LookupException("No service of type " + type)); } @Override public <T> T lookup(Class<T> type, String name) { return null; } @Override
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu May 02 15:10:38 GMT 2024 - 2K bytes - Viewed (0) -
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 May 05 03:35:11 GMT 2024 - Last Modified: Thu Apr 25 14:13:36 GMT 2024 - 17.1K bytes - Viewed (0) -
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 May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 24 19:38:27 GMT 2024 - 42.8K bytes - Viewed (0) -
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 May 05 03:35:11 GMT 2024 - Last Modified: Thu May 02 15:10:38 GMT 2024 - 56.9K bytes - Viewed (0)