Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getPrevious (0.17 sec)

  1. src/test/java/org/codelibs/core/collection/SLinkedListTest.java

            list.addLast("3");
            SLinkedList<String>.Entry e = list.getFirstEntry();
            assertThat(e.getPrevious(), is(nullValue()));
            assertThat(e.getNext().getElement(), is("2"));
            e = list.getLastEntry();
            assertThat(e.getNext(), is(nullValue()));
            assertThat(e.getPrevious().getElement(), is("2"));
            list.getEntry(1).remove();
            assertThat(list.getFirst(), is("1"));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/collection/SLinkedList.java

                }
                return null;
            }
    
            /**
             * Returns the previous entry.
             *
             * @return the previous entry
             */
            public Entry getPrevious() {
                if (previous != SLinkedList.this.header) {
                    return previous;
                }
                return null;
            }
    
            /**
             * Removes the element.
             */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 10.5K bytes
    - Viewed (0)
Back to top