Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for getLastEntry (0.12 seconds)

  1. 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;
            }
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  2. 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();
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 8.3K bytes
    - Click Count (0)
Back to Top