Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for addLast (0.03 sec)

  1. guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java

        @Override
        public void addFirst(E e) {
          assertTrue(Thread.holdsLock(mutex));
          delegate.addFirst(e);
        }
    
        @Override
        public void addLast(E e) {
          assertTrue(Thread.holdsLock(mutex));
          delegate.addLast(e);
        }
    
        @Override
        public boolean offerFirst(E e) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.offerFirst(e);
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/collection/SLinkedList.java

            header.previous = header;
            for (int i = 0; i < size; i++) {
                addLast((E) s.readObject());
            }
        }
    
        @Override
        public Object clone() {
            final SLinkedList<E> copy = new SLinkedList<>();
            for (Entry e = header.next; e != header; e = e.next) {
                copy.addLast(e.element);
            }
            return copy;
        }
    
        /**
    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. android/guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java

        @Override
        public void addFirst(E e) {
          assertTrue(Thread.holdsLock(mutex));
          delegate.addFirst(e);
        }
    
        @Override
        public void addLast(E e) {
          assertTrue(Thread.holdsLock(mutex));
          delegate.addLast(e);
        }
    
        @Override
        public boolean offerFirst(E e) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.offerFirst(e);
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/misc/DisposableUtil.java

         *            A disposable resource. Must not be {@literal null}.
         */
        public static synchronized void add(final Disposable disposable) {
            assertArgumentNotNull("disposable", disposable);
            disposables.addLast(disposable);
        }
    
        /**
         * Registers a disposable resource at the beginning.
         * <p>
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Streams.java

            if (state.set) {
              return java.util.Optional.of(state.get());
            }
            // fall back to the last split
            continue;
          }
          splits.addLast(prefix);
          splits.addLast(spliterator);
        }
        return java.util.Optional.empty();
      }
    
      /**
       * Returns the last element of the specified stream, or {@link OptionalInt#empty} if the stream is
       * empty.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 37K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/Graphs.java

        Deque<NodeAndRemainingSuccessors<N>> stack = new ArrayDeque<>();
        stack.addLast(new NodeAndRemainingSuccessors<>(startNode));
    
        while (!stack.isEmpty()) {
          // To peek at the top two items, we need to temporarily remove one.
          NodeAndRemainingSuccessors<N> top = stack.removeLast();
          NodeAndRemainingSuccessors<N> prev = stack.peekLast();
          stack.addLast(top);
    
          N node = top.node;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/graph/Graphs.java

        Deque<NodeAndRemainingSuccessors<N>> stack = new ArrayDeque<>();
        stack.addLast(new NodeAndRemainingSuccessors<>(startNode));
    
        while (!stack.isEmpty()) {
          // To peek at the top two items, we need to temporarily remove one.
          NodeAndRemainingSuccessors<N> top = stack.removeLast();
          NodeAndRemainingSuccessors<N> prev = stack.peekLast();
          stack.addLast(top);
    
          N node = top.node;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

         * @param collection the sequenced collection
         * @param element the element to add
         * @since Java 21
         */
        public static <E> void addLast(final SequencedCollection<E> collection, final E element) {
            collection.addLast(element);
        }
    
        /**
         * Returns a reversed view of a sequenced collection.
         *
         * @param <E> the element type
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 49.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

        TestSuite suite = new TestSuite();
    
        // Not testing rowKeySet() or columnKeySet() of Table.transformValues()
        // since the transformation doesn't affect the row and column key sets.
    
        suite.addTest(
            SetTestSuiteBuilder.using(
                    new TestStringSetGenerator() {
                      @Override
                      protected Set<String> create(String[] elements) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java

                .createTestSuite());
    
        suite.addTest(
            MultisetTestSuiteBuilder.using(unionGenerator())
                .withFeatures(CollectionSize.ANY, CollectionFeature.ALLOWS_NULL_VALUES)
                .named("Multisets.union")
                .createTestSuite());
    
        suite.addTest(
            MultisetTestSuiteBuilder.using(intersectionGenerator())
                .withFeatures(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 9.7K bytes
    - Viewed (0)
Back to top