Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for peekLast (0.05 sec)

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

        assertEquals(4, (int) mmHeap.pollLast());
        assertEquals(3, (int) mmHeap.peekLast());
        assertEquals(3, (int) mmHeap.pollLast());
        assertEquals(1, (int) mmHeap.peek());
        assertEquals(2, (int) mmHeap.peekLast());
        assertEquals(2, (int) mmHeap.pollLast());
        assertEquals(1, (int) mmHeap.peek());
        assertEquals(1, (int) mmHeap.peekLast());
        assertEquals(1, (int) mmHeap.pollLast());
        assertNull(mmHeap.peek());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        assertEquals(4, (int) mmHeap.pollLast());
        assertEquals(3, (int) mmHeap.peekLast());
        assertEquals(3, (int) mmHeap.pollLast());
        assertEquals(1, (int) mmHeap.peek());
        assertEquals(2, (int) mmHeap.peekLast());
        assertEquals(2, (int) mmHeap.pollLast());
        assertEquals(1, (int) mmHeap.peek());
        assertEquals(1, (int) mmHeap.peekLast());
        assertEquals(1, (int) mmHeap.pollLast());
        assertNull(mmHeap.peek());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ForwardingDeque.java

        return delegate().offerLast(e);
      }
    
      @Override
      @CheckForNull
      public E peekFirst() {
        return delegate().peekFirst();
      }
    
      @Override
      @CheckForNull
      public E peekLast() {
        return delegate().peekLast();
      }
    
      @CanIgnoreReturnValue // TODO(cpovirk): Consider removing this?
      @Override
      @CheckForNull
      public E pollFirst() {
        return delegate().pollFirst();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java

        public @Nullable E peekFirst() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.peekFirst();
        }
    
        @Override
        public @Nullable E peekLast() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.peekLast();
        }
    
        @Override
        public boolean removeFirstOccurrence(Object o) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.removeFirstOccurrence(o);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:23:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

     * defined as the <i>least</i> element in the queue according to the queue's comparator. But unlike
     * a regular priority queue, the methods {@link #peekLast}, {@link #pollLast} and {@link
     * #removeLast} are also provided, to act on the <i>greatest</i> element in the queue instead.
     *
     * <p>A min-max priority queue can be configured with a maximum size. If so, each time the size of
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

                    if (phase != null) {
                        Deque<String> phases = getLifecycles(project);
                        if (!Objects.equals(phase, phases.peekLast())) {
                            phases.addLast(phase);
                            if ("clean".equals(phase)) {
                                cleanProjectLocalRepository(project);
                            }
                        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

     * defined as the <i>least</i> element in the queue according to the queue's comparator. But unlike
     * a regular priority queue, the methods {@link #peekLast}, {@link #pollLast} and {@link
     * #removeLast} are also provided, to act on the <i>greatest</i> element in the queue instead.
     *
     * <p>A min-max priority queue can be configured with a maximum size. If so, each time the size of
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  8. api/maven-api-plugin/src/main/mdo/plugin.mdo

            <field xml.format="((PluginDescriptor.Builder) context.peekLast()).build().getId() + &quot;:&quot; + mojoDescriptor.build().getGoal()">
              <name>id</name>
              <version>2.0.0+</version>
              <type>String</type>
              <description>the id of the mojo, based on the goal name</description>
            </field>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Aug 16 14:16:22 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/util/GsaConfigParser.java

            if (tagQueue.isEmpty() && !"eef".equalsIgnoreCase(qName)) {
                throw new GsaConfigException("Invalid format.");
            }
            if (COLLECTION.equalsIgnoreCase(qName) && COLLECTIONS.equalsIgnoreCase(tagQueue.peekLast())) {
                final long now = ComponentUtil.getSystemHelper().getCurrentTimeAsLong();
                final String name = attributes.getValue("Name");
                labelType = new LabelType();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Synchronized.java

        public E peekFirst() {
          synchronized (mutex) {
            return delegate().peekFirst();
          }
        }
    
        @Override
        @CheckForNull
        public E peekLast() {
          synchronized (mutex) {
            return delegate().peekLast();
          }
        }
    
        @Override
        public boolean removeFirstOccurrence(@CheckForNull Object o) {
          synchronized (mutex) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53.4K bytes
    - Viewed (0)
Back to top