Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getFirstEntry (0.15 sec)

  1. 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 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

         * Returns the first element.
         *
         * @return the first element
         */
        public E getFirst() {
            if (isEmpty()) {
                throw new NoSuchElementException();
            }
            return getFirstEntry().element;
        }
    
        /**
         * Returns the last element.
         *
         * @return the last element
         */
        public E getLast() {
            if (isEmpty()) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  3. 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 Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 7.8K bytes
    - Viewed (0)
Back to top