Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 176 for Insert (0.14 sec)

  1. guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

              if (high < low) {
                break; // Pointers crossed. Partitioning complete.
              }
              swap(array, low, high); // End of innermost loop.
            }
            array[from + 1] = array[high]; // Insert partitioning element.
            array[high] = partition;
    
            // Continue the partition that contains the kth element.
            if (high >= k) {
              to = high - 1;
            }
            if (high <= k) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

              if (high < low) {
                break; // Pointers crossed. Partitioning complete.
              }
              swap(array, low, high); // End of innermost loop.
            }
            array[from + 1] = array[high]; // Insert partitioning element.
            array[high] = partition;
    
            // Continue the partition that contains the kth element.
            if (high >= k) {
              to = high - 1;
            }
            if (high <= k) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

      }
    
      @Override
      void accessEntry(int index) {
        if (accessOrder) {
          // delete from previous position...
          setSucceeds(getPredecessor(index), getSuccessor(index));
          // ...and insert at the end.
          setSucceeds(lastEntry, index);
          setSucceeds(index, ENDPOINT);
          incrementModCount();
        }
      }
    
      @Override
      void moveLastEntry(int dstIndex, int mask) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/RangeMap.java

       * for {@code asMapOfRanges().iterator().remove()}.
       *
       * <p>The returned range map will throw an {@link IllegalArgumentException} on an attempt to
       * insert a range not {@linkplain Range#encloses(Range) enclosed} by {@code range}.
       */
      // TODO(cpovirk): Consider documenting that IAE on the various methods that can throw it.
      RangeMap<K, V> subRangeMap(Range<K> range);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java

        // Verify that the listener executed in a reasonable amount of time.
        Assert.assertTrue(countDownLatch.await(1L, SECONDS));
    
        try {
          future.get();
          Assert.fail("This call was supposed to throw an ExecutionException");
        } catch (ExecutionException expected) {
          Assert.assertSame(expectedCause, expected.getCause());
        }
      }
    
      public void assertTimeout() throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 18:12:42 GMT 2023
    - 3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/LenientSerializableTester.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.testing.SerializableTester.reserialize;
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.assertTrue;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.testing.SerializableTester;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Aug 04 15:33:27 GMT 2020
    - 2.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/ByteSinkTest.java

    import static com.google.common.io.TestOption.OPEN_THROWS;
    import static com.google.common.io.TestOption.READ_THROWS;
    import static com.google.common.io.TestOption.WRITE_THROWS;
    import static org.junit.Assert.assertArrayEquals;
    import static org.junit.Assert.assertThrows;
    
    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.util.EnumSet;
    
    /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/ByteSourceTester.java

    package com.google.common.io;
    
    import static com.google.common.io.SourceSinkFactory.ByteSourceFactory;
    import static com.google.common.io.SourceSinkFactory.CharSourceFactory;
    import static org.junit.Assert.assertArrayEquals;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.base.Charsets;
    import com.google.common.base.Optional;
    import com.google.common.collect.ImmutableList;
    import com.google.common.hash.HashCode;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/html/HtmlEscapersTest.java

        // Test simple escape of '&'.
        assertEquals("foo&amp;bar", htmlEscaper().escape("foo&bar"));
    
        // If the string contains no escapes, it should return the arg.
        // Note: assert<b>Same</b> for this implementation.
        String s = "blah blah farhvergnugen";
        assertSame(s, htmlEscaper().escape(s));
    
        // Tests escapes at begin and end of string.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 2.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

    package com.google.common.util.concurrent;
    
    import static com.google.common.util.concurrent.GeneratedMonitorTest.startThread;
    import static com.google.common.util.concurrent.Uninterruptibles.joinUninterruptibly;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.util.concurrent.GeneratedMonitorTest.FlagGuard;
    import java.util.concurrent.atomic.AtomicBoolean;
    import java.util.concurrent.atomic.AtomicInteger;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.9K bytes
    - Viewed (0)
Back to top