- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getLastEntry (1.01 sec)
-
src/test/java/org/codelibs/core/collection/SLinkedListTest.java
e = list.getLastEntry(); assertThat(e.getNext(), is(nullValue())); assertThat(e.getPrevious().getElement(), is("2")); list.getEntry(1).remove(); assertThat(list.getFirst(), is("1")); assertThat(list.getLast(), is("3")); list.getLastEntry().remove(); assertThat(list.getLast(), is("1")); list.getLastEntry().remove();
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 8.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/SLinkedList.java
* Returns the last element. * * @return the last element */ public E getLast() { if (isEmpty()) { throw new NoSuchElementException(); } return getLastEntry().element; } /** * Returns the first entry. * * @return the first entry */ public Entry getFirstEntry() { if (isEmpty()) { return null; }
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 10.5K bytes - Viewed (0)