Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for ends (0.25 sec)

  1. guava-tests/test/com/google/common/primitives/BooleansTest.java

        testRotate(new boolean[] {true}, 1, 0, 1, new boolean[] {true});
        testRotate(new boolean[] {true}, 1, 1, 1, new boolean[] {true});
    
        // Rotate the central 5 elements, leaving the ends as-is
        testRotate(
            new boolean[] {false, true, false, true, false, true, false},
            -6,
            1,
            6,
            new boolean[] {false, false, true, false, true, true, false});
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/BooleansTest.java

        testRotate(new boolean[] {true}, 1, 0, 1, new boolean[] {true});
        testRotate(new boolean[] {true}, 1, 1, 1, new boolean[] {true});
    
        // Rotate the central 5 elements, leaving the ends as-is
        testRotate(
            new boolean[] {false, true, false, true, false, true, false},
            -6,
            1,
            6,
            new boolean[] {false, false, true, false, true, true, false});
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Comparators.java

      private Comparators() {}
    
      /**
       * Returns a new comparator which sorts iterables by comparing corresponding elements pairwise
       * until a nonzero result is found; imposes "dictionary order." If the end of one iterable is
       * reached, but not the other, the shorter iterable is considered to be less than the longer one.
       * For example, a lexicographical natural ordering over integers considers {@code [] < [1] < [1,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Iterables.java

        // * Everything with (to <= index < from) should be removed.
        // * The element with (index == from) should be kept.
        // * Everything with (index > from) has not been checked yet.
    
        // Check from the end of the list backwards (minimize expected cost of
        // moving elements when remove() is called). Stop before 'from' because
        // we already know that should be kept.
        for (int n = list.size() - 1; n > from; n--) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        mmHeap.addAll(Lists.newArrayList(1, 2));
        Iterator<Integer> it = mmHeap.iterator();
        assertTrue("Iterator has reached end prematurely", it.hasNext());
        it.next();
        it.next();
        try {
          it.next();
          fail("No exception thrown when iterating past end of heap");
        } catch (NoSuchElementException expected) {
        }
      }
    
      public void testIteratorConcurrentModification() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ListsTest.java

        assertEquals("3", iterator.next());
        assertEquals("4", iterator.next());
        assertEquals(4, iterator.nextIndex());
        try {
          iterator.next();
          fail("did not detect end of list");
        } catch (NoSuchElementException expected) {
        }
        assertEquals(3, iterator.previousIndex());
        assertEquals("4", iterator.previous());
        assertEquals("3", iterator.previous());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/BaseEncoding.java

          // multiple of 8. A multiple of 8 has 3 low zero bits, so we just need to figure out how many
          // extra zero bits we need to add to the end of bitsPerChar to get 3 in total.
          // The logic here would be wrong for bitsPerChar > 8, but since we require distinct ASCII
          // characters that can't happen.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 15 16:33:32 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableMap.java

          if (throwIfDuplicateKeys && duplicateKey != null) {
            throw duplicateKey.exception();
          }
          /*
           * If entries is full, then this implementation may end up using the entries array
           * directly and writing over the entry objects with non-terminal entries, but this is
           * safe; if this Builder is used further, it will grow the entries array (so it can't
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableSet.java

          // If knownRunStart == knownRunEnd, this is vacuously true.
          // When knownRunEnd exceeds hashTable.length, it "wraps", detecting runs around the end
          // of the table.
          int knownRunStart = 0;
          int knownRunEnd = 0;
    
          outerLoop:
          while (knownRunStart < hashTable.length) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ListsTest.java

        assertEquals("3", iterator.next());
        assertEquals("4", iterator.next());
        assertEquals(4, iterator.nextIndex());
        try {
          iterator.next();
          fail("did not detect end of list");
        } catch (NoSuchElementException expected) {
        }
        assertEquals(3, iterator.previousIndex());
        assertEquals("4", iterator.previous());
        assertEquals("3", iterator.previous());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
Back to top