Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getPrevious (0.05 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 Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/collection/SLinkedList.java

                    return next;
                }
                return null;
            }
    
            /**
             * 前のエントリを返します。
             *
             * @return 前のエントリ
             */
            public Entry getPrevious() {
                if (previous != SLinkedList.this.header) {
                    return previous;
                }
                return null;
            }
    
            /**
             * 要素を削除します。
             */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top