Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for head (0.21 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

        List<E> head = list.subList(0, size - 1);
        List<E> tail = list.subList(1, size);
        assertEquals(list.get(0), copy.get(0));
        assertEquals(list.get(size - 1), copy.get(size - 1));
        assertEquals(list.get(1), tail.get(0));
        assertEquals(list.get(size - 1), tail.get(size - 2));
        assertEquals(list.get(0), head.get(0));
        assertEquals(list.get(size - 2), head.get(size - 2));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

        List<E> head = list.subList(0, size - 1);
        List<E> tail = list.subList(1, size);
        assertEquals(list.get(0), copy.get(0));
        assertEquals(list.get(size - 1), copy.get(size - 1));
        assertEquals(list.get(1), tail.get(0));
        assertEquals(list.get(size - 1), tail.get(size - 2));
        assertEquals(list.get(0), head.get(0));
        assertEquals(list.get(size - 2), head.get(size - 2));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/cache/ChainBenchmark.java

        for (int i = 0; i < length; i++) {
          Object key = new Object();
          // TODO(b/145386688): This access should be guarded by 'this.segment', which is not currently
          // held
          chain = segment.newEntry(key, cache.hash(key), chain);
          if (i == 0) {
            head = chain;
          }
        }
      }
    
      @SuppressWarnings("GuardedBy")
      @Benchmark
      int time(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    to make out exactly what they said.
    
      The executioner's argument was, that you couldn't cut off a
    head unless there was a body to cut it off from:  that he had
    never had to do such a thing before, and he wasn't going to begin
    at HIS time of life.
    
      The King's argument was, that anything that had a head could be
    beheaded, and that you weren't to talk nonsense.
    
    Plain Text
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Apr 21 02:27:51 GMT 2017
    - 145.2K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

        }
    
        public void execute() {
          RunnableExecutorPair stack;
          do {
            stack = head;
            if (stack == null) {
              // If head == null then execute() has been called so we should just return
              return;
            }
            // try to swap null into head.
          } while (!UNSAFE.compareAndSwapObject(this, HEAD_OFFSET, stack, null));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/EvictingQueue.java

       * of the queue is evicted to make room.
       *
       * @return {@code true} always
       */
      @Override
      @CanIgnoreReturnValue
      public boolean offer(E e) {
        return add(e);
      }
    
      /**
       * Adds the given element to this queue. If the queue is currently full, the element at the head
       * of the queue is evicted to make room.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 17:52:55 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/LocalCache.java

        public void clear() {
          ReferenceEntry<K, V> e = head.getNextInWriteQueue();
          while (e != head) {
            ReferenceEntry<K, V> next = e.getNextInWriteQueue();
            nullifyWriteOrder(e);
            e = next;
          }
    
          head.setNextInWriteQueue(head);
          head.setPreviousInWriteQueue(head);
        }
    
        @Override
        public Iterator<ReferenceEntry<K, V>> iterator() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        testSubMultisetEntrySet(SubMultisetSpec.HEAD_CLOSED);
      }
    
      public void testHeadClosedSize() {
        testSubMultisetSize(SubMultisetSpec.HEAD_CLOSED);
      }
    
      public void testHeadClosedDistinctElements() {
        testSubMultisetDistinctElements(SubMultisetSpec.HEAD_CLOSED);
      }
    
      public void testHeadOpenEntrySet() {
        testSubMultisetEntrySet(SubMultisetSpec.HEAD_OPEN);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 25.9K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        testSubMultisetEntrySet(SubMultisetSpec.HEAD_CLOSED);
      }
    
      public void testHeadClosedSize() {
        testSubMultisetSize(SubMultisetSpec.HEAD_CLOSED);
      }
    
      public void testHeadClosedDistinctElements() {
        testSubMultisetDistinctElements(SubMultisetSpec.HEAD_CLOSED);
      }
    
      public void testHeadOpenEntrySet() {
        testSubMultisetEntrySet(SubMultisetSpec.HEAD_OPEN);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 25.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/FloatArrayAsListTest.java

            ImmutableList.of(
                ListTestSuiteBuilder.using(new FloatsAsListGenerator()).named("Floats.asList"),
                ListTestSuiteBuilder.using(new FloatsAsListHeadSubListGenerator())
                    .named("Floats.asList, head subList"),
                ListTestSuiteBuilder.using(new FloatsAsListTailSubListGenerator())
                    .named("Floats.asList, tail subList"),
                ListTestSuiteBuilder.using(new FloatsAsListMiddleSubListGenerator())
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.6K bytes
    - Viewed (0)
Back to top