Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for removeList (1.15 sec)

  1. src/main/java/org/codelibs/core/collection/ArrayMap.java

        }
    
        @Override
        public V remove(final Object key) {
            final Entry<K, V> e = removeMap(key);
            if (e != null) {
                final V value = e.value;
                removeList(entryIndexOf(e));
                e.clear();
                return value;
            }
            return null;
        }
    
        /**
         * Removes the entry at the specified index.
         *
         * @param index
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 20.1K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/SLinkedListTest.java

            list.addLast("1");
            list.addLast("2");
            list.removeFirst();
            assertThat(list.getFirst(), is("2"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testRemoveLast() throws Exception {
            list.addLast("1");
            list.addLast("2");
            list.removeLast();
            assertThat(list.getLast(), is("1"));
        }
    
        /**
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/collection/SLinkedList.java

         */
        public E removeFirst() {
            if (isEmpty()) {
                throw new NoSuchElementException();
            }
            final E first = header.next.element;
            header.next.remove();
            return first;
        }
    
        /**
         * Removes the last element.
         *
         * @return the last element
         */
        public E removeLast() {
            if (isEmpty()) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/misc/DisposableUtil.java

        }
    
        /**
         * Disposes of all registered resources.
         */
        public static synchronized void dispose() {
            while (!disposables.isEmpty()) {
                final Disposable disposable = disposables.removeLast();
                try {
                    disposable.dispose();
                } catch (final Throwable t) {
                    t.printStackTrace(); // must not use Logger.
                }
            }
            disposables.clear();
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/SmbCircuitBreaker.java

            // Add to history for percentile calculation
            responseTimeHistory.addLast(responseTimeMs);
            if (responseTimeHistory.size() > 1000) { // Keep last 1000 measurements
                responseTimeHistory.removeFirst();
            }
    
            // Calculate moving average (simple approach)
            if (!responseTimeHistory.isEmpty()) {
                long sum = responseTimeHistory.stream().mapToLong(Long::longValue).sum();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
Back to top