- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getFirstEntry (0.07 sec)
-
src/test/java/org/codelibs/core/collection/SLinkedListTest.java
/** * @throws Exception */ @Test public void testGetFirstEntry() throws Exception { assertThat(list.getFirstEntry(), is(nullValue())); list.addFirst("1"); assertThat(list.getFirstEntry().getElement(), is("1")); } /** * @throws Exception */ @Test public void testGetFirst() throws Exception { try {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 8.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/SLinkedList.java
} /** * 最初の要素を返します。 * * @return 最初の要素 */ public E getFirst() { if (isEmpty()) { throw new NoSuchElementException(); } return getFirstEntry().element; } /** * 最後の要素を返します。 * * @return 最後の要素 */ public E getLast() { if (isEmpty()) { throw new NoSuchElementException(); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 11K bytes - Viewed (0) -
src/main/java/org/codelibs/core/timer/TimeoutManager.java
final List<TimeoutTask> expiredTask = new ArrayList<>(); if (timeoutTaskList.isEmpty()) { return expiredTask; } for (SLinkedList<TimeoutTask>.Entry e = timeoutTaskList.getFirstEntry(); e != null; e = e.getNext()) { final TimeoutTask task = e.getElement(); if (task.isCanceled()) { e.remove(); } else if (!task.isStopped() && task.isExpired()) {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 8K bytes - Viewed (0)