- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for findFirst (0.05 sec)
-
guava/src/com/google/common/collect/Iterables.java
* will match, use {@link #tryFind} or {@link #find(Iterable, Predicate, Object)} instead. * * <p><b>{@code Stream} equivalent:</b> {@code stream.filter(predicate).findFirst().get()} * * @throws NoSuchElementException if no element in {@code iterable} matches the given predicate */ @ParametricNullness public static <T extends @Nullable Object> T find(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 43.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterables.java
* will match, use {@link #tryFind} or {@link #find(Iterable, Predicate, Object)} instead. * * <p><b>{@code Stream} equivalent:</b> {@code stream.filter(predicate).findFirst().get()} * * @throws NoSuchElementException if no element in {@code iterable} matches the given predicate */ @ParametricNullness public static <T extends @Nullable Object> T find(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 43.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DosErrorTest.java
*/ public class DosErrorTest { private static Optional<Integer> findNtStatus(int dosErrorCode) { return Arrays.stream(DosError.DOS_ERROR_CODES).filter(pair -> pair[0] == dosErrorCode).map(pair -> pair[1]).findFirst(); } @Test @DisplayName("DOS_ERROR_CODES is non‑null and non‑empty") void testCodesArrayExistence() { assertNotNull(DosError.DOS_ERROR_CODES, "DOS_ERROR_CODES should be non‑null");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Streams.java
* streams. * * <p>If the stream has nondeterministic order, this has equivalent semantics to {@link * Stream#findAny} (which you might as well use). * * @see Stream#findFirst() * @throws NullPointerException if the last element of the stream is null */ /* * By declaring <T> instead of <T extends @Nullable Object>, we declare this method as requiring a
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 37K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FluentIterable.java
* differences include: * * <ul> * <li>A stream is <i>single-use</i>; it becomes invalid as soon as any "terminal operation" such * as {@code findFirst()} or {@code iterator()} is invoked. (Even though {@code Stream} * contains all the right method <i>signatures</i> to implement {@link Iterable}, it does not
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 35.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/FluentIterable.java
* standard. Key differences include: * * <ul> * <li>A stream is <i>single-use</i>; it becomes invalid as soon as any "terminal operation" such * as {@code findFirst()} or {@code iterator()} is invoked. (Even though {@code Stream} * contains all the right method <i>signatures</i> to implement {@link Iterable}, it does not
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 34.8K bytes - Viewed (0) -
api/maven-api-xml/src/main/java/org/apache/maven/api/xml/XmlService.java
} /** Holder class for lazy initialization of the default instance */ private static final class Holder { static final XmlService INSTANCE = ServiceLoader.load(XmlService.class) .findFirst() .orElseThrow(() -> new IllegalStateException("No XmlService implementation found")); private Holder() {} }
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Thu Apr 03 13:33:59 UTC 2025 - 9.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/QueryStringBuilder.java
final int maxQueryLength = fessConfig.getQueryMaxLengthAsInteger(); stream(conditions.get(SearchRequestParams.AS_OCCURRENCE)) .of(stream -> stream.filter(this::isOccurrence).findFirst().ifPresent(q -> queryBuf.insert(0, q + ":"))); stream(conditions.get(SearchRequestParams.AS_Q)) .of(stream -> stream.filter(q -> StringUtil.isNotBlank(q) && q.length() <= maxQueryLength)
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 12.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java
* @return corresponding channel or null */ public ChannelInfo getChannelForTransport(SmbTransport transport) { return channels.values().stream().filter(c -> c.getTransport() == transport).findFirst().orElse(null); } /** * Remove a channel * * @param channel channel to remove */ public void removeChannel(ChannelInfo channel) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 20K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/crawler/FessCrawlerThread.java
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 19.1K bytes - Viewed (0)