- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 141 for getLast (0.04 sec)
-
guava-tests/test/com/google/common/collect/IteratorsTest.java
assertEquals("foo", Iterators.getLast(iterator, "bar")); } public void testGetLast_withDefault_empty() { Iterator<String> iterator = emptyIterator(); assertEquals("bar", Iterators.getLast(iterator, "bar")); } public void testGetLast_withDefault_empty_null() { Iterator<String> iterator = emptyIterator(); assertNull(Iterators.<@Nullable String>getLast(iterator, null)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 54.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/CrawlingInfoHelper.java
*/ public synchronized void store(final String sessionId, final boolean create) { CrawlingInfo crawlingInfo = create ? null : getCrawlingInfoService().getLast(sessionId); if (crawlingInfo == null) { crawlingInfo = new CrawlingInfo(sessionId); try { getCrawlingInfoService().store(crawlingInfo);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 15.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
assertEquals("foo", Iterators.getLast(iterator, "bar")); } public void testGetLast_withDefault_empty() { Iterator<String> iterator = emptyIterator(); assertEquals("bar", Iterators.getLast(iterator, "bar")); } public void testGetLast_withDefault_empty_null() { Iterator<String> iterator = emptyIterator(); assertNull(Iterators.<@Nullable String>getLast(iterator, null)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 54.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/Iterables.java
* consider using {@code collection.getLast()} instead. * * @return the last element of {@code iterable} * @throws NoSuchElementException if the iterable is empty */ @ParametricNullness public static <T extends @Nullable Object> T getLast(Iterable<T> iterable) { // TODO(kevinb): Support a concurrently modified collection?
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 43.3K bytes - Viewed (0) -
README.md
// Java 21 Sequenced Collections support SequencedCollection<String> sequenced = CollectionsUtil.newLinkedHashSet(); String first = CollectionsUtil.getFirst(sequenced); String last = CollectionsUtil.getLast(sequenced); SequencedCollection<String> reversed = CollectionsUtil.reversed(sequenced); // Specialized collections LruHashMap<String, Object> lruCache = new LruHashMap<>(100); // LRU cache with max 100 entries
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sun Aug 31 02:56:02 UTC 2025 - 12.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/CrawlingInfoService.java
*/ public List<CrawlingInfoParam> getLastCrawlingInfoParamList(final String sessionId) { final CrawlingInfo crawlingInfo = getLast(sessionId); if (crawlingInfo == null) { return Collections.emptyList(); } final FessConfig fessConfig = ComponentUtil.getFessConfig();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 19.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/SLinkedList.java
throw new NoSuchElementException(); } return getFirstEntry().element; } /** * Returns the last element. * * @return the last element */ public E getLast() { if (isEmpty()) { throw new NoSuchElementException(); } return getLastEntry().element; } /** * Returns the first entry. *
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 10.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FluentIterable.java
* * @throws NullPointerException if the last element is null; if this is a possibility, use {@link * Iterables#getLast} instead. */ @SuppressWarnings("nullness") // Unsafe, but we can't do much about it now. public final Optional<@NonNull E> last() { // Iterables#getLast was inlined here so we don't have to throw/catch a NSEE // TODO(kevinb): Support a concurrently modified collection?
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
* * @throws NullPointerException if the last element is null; if this is a possibility, use {@link * Iterables#getLast} instead. */ @SuppressWarnings("nullness") // Unsafe, but we can't do much about it now. public final Optional<@NonNull E> last() { // Iterables#getLast was inlined here so we don't have to throw/catch a NSEE // TODO(kevinb): Support a concurrently modified collection?
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 34.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterators.java
* @return the last element of {@code iterator} * @since 3.0 */ @ParametricNullness public static <T extends @Nullable Object> T getLast( Iterator<? extends T> iterator, @ParametricNullness T defaultValue) { return iterator.hasNext() ? getLast(iterator) : defaultValue; } /** * Calls {@code next()} on {@code iterator}, either {@code numberToAdvance} times or until {@code
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 50.5K bytes - Viewed (0)