Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for removeLast (0.23 sec)

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

            final E first = header.next.element;
            header.next.remove();
            return first;
        }
    
        /**
         * 最後の要素を削除します。
         *
         * @return 最後の要素
         */
        public E removeLast() {
            if (isEmpty()) {
                throw new NoSuchElementException();
            }
            final E last = header.previous.element;
            header.previous.remove();
            return last;
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Synchronized.java

        @Override
        public E removeFirst() {
          synchronized (mutex) {
            return delegate().removeFirst();
          }
        }
    
        @Override
        public E removeLast() {
          synchronized (mutex) {
            return delegate().removeLast();
          }
        }
    
        @Override
        @CheckForNull
        public E pollFirst() {
          synchronized (mutex) {
            return delegate().pollFirst();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Synchronized.java

        @Override
        public E removeFirst() {
          synchronized (mutex) {
            return delegate().removeFirst();
          }
        }
    
        @Override
        public E removeLast() {
          synchronized (mutex) {
            return delegate().removeLast();
          }
        }
    
        @Override
        @CheckForNull
        public E pollFirst() {
          synchronized (mutex) {
            return delegate().pollFirst();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Streams.java

        Deque<Spliterator<T>> splits = new ArrayDeque<>();
        splits.addLast(stream.spliterator());
    
        while (!splits.isEmpty()) {
          Spliterator<T> spliterator = splits.removeLast();
    
          if (spliterator.getExactSizeIfKnown() == 0) {
            continue; // drop this split
          }
    
          // Many spliterators will have trySplits that are SUBSIZED even if they are not themselves
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Streams.java

        Deque<Spliterator<T>> splits = new ArrayDeque<>();
        splits.addLast(stream.spliterator());
    
        while (!splits.isEmpty()) {
          Spliterator<T> spliterator = splits.removeLast();
    
          if (spliterator.getExactSizeIfKnown() == 0) {
            continue; // drop this split
          }
    
          // Many spliterators will have trySplits that are SUBSIZED even if they are not themselves
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Iterators.java

              if (topConcat.metaIterators != null) {
                while (!topConcat.metaIterators.isEmpty()) {
                  this.metaIterators.addFirst(topConcat.metaIterators.removeLast());
                }
              }
              this.topMetaIterator = topConcat.topMetaIterator;
            }
          }
          return true;
        }
    
        @Override
        @ParametricNullness
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/collection/ArrayMap.java

                final V value = e.value;
                removeList(entryIndexOf(e));
                e.clear();
                return value;
            }
            return null;
        }
    
        /**
         * インデックスで指定された位置のエントリを削除します。
         *
         * @param index
         *            インデックス
         * @return インデックスで指定された位置にあったエントリの値
         */
        public V removeAt(final int index) {
            final Entry<K, V> e = removeList(index);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt

        path += name
        try {
          block(content)
          constructedBit = if (constructed) 0b0010_0000 else 0
          constructed = true // The enclosing object is constructed.
        } finally {
          stack.removeAt(stack.size - 1)
          path.removeAt(path.size - 1)
        }
    
        val sink = sink()
    
        // Write the tagClass, tag, and constructed bit. This takes 1 byte if tag is less than 31.
        if (tag < 31) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerTest.kt

            override fun runOnce(): Long {
              log += "run@${taskFaker.nanoTime}"
              if (schedules.isNotEmpty()) {
                redQueue.schedule(this, schedules.removeAt(0))
              }
              return delays.removeAt(0)
            }
          }
        redQueue.schedule(task, 100.µs)
    
        taskFaker.advanceUntil(0.µs)
        assertThat(log).isEmpty()
    
        taskFaker.advanceUntil(100.µs)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 23K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt

      apply {
        var i = 0
        while (i < namesAndValues.size) {
          if (name.equals(namesAndValues[i], ignoreCase = true)) {
            namesAndValues.removeAt(i) // name
            namesAndValues.removeAt(i) // value
            i -= 2
          }
          i += 2
        }
      }
    
    /**
     * Set a field with the specified value. If the field is not found, it is added. If the field is
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top