Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for insert (0.26 sec)

  1. 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)
  2. android/guava/src/com/google/common/collect/TreeRangeMap.java

              throw new IllegalArgumentException(
                  "Cannot insert range " + range + " into an empty subRangeMap");
            }
    
            @Override
            public void putCoalescing(Range<Comparable<?>> range, Object value) {
              checkNotNull(range);
              throw new IllegalArgumentException(
                  "Cannot insert range " + range + " into an empty subRangeMap");
            }
    
            @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  3. 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)
  4. android/guava/src/com/google/common/collect/Iterables.java

       *
       * <p><b>{@code Stream} equivalent:</b> {@code stream.filter(type::isInstance).map(type::cast)}.
       * This does perform a little more work than necessary, so another option is to insert an
       * unchecked cast at some later point:
       *
       * <pre>
       * {@code @SuppressWarnings("unchecked") // safe because of ::isInstance check
       * ImmutableList<NewType> result =
    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

        }
        assertIntact(mmHeap);
        assertEquals(heapSize, mmHeap.size());
        int currentHeapSize = heapSize;
        for (int i = 0; i < numberOfModifications; i++) {
          if (random.nextBoolean()) {
            /* insert a new element */
            int randomInt = random.nextInt();
            mmHeap.offer(randomInt);
            insertIntoReplica(replica, randomInt);
            currentHeapSize++;
          } else {
    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. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

    import static java.util.Arrays.asList;
    import static java.util.Collections.unmodifiableSet;
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.assertFalse;
    import static junit.framework.Assert.assertTrue;
    import static junit.framework.Assert.fail;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Ordering;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 18:19:31 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

    import static com.google.common.util.concurrent.MoreExecutors.directExecutor;
    import static java.util.concurrent.Executors.newScheduledThreadPool;
    import static java.util.concurrent.TimeUnit.SECONDS;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.Function;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

       */
      @Override
      public ImmutableSetMultimap<V, K> inverse() {
        ImmutableSetMultimap<V, K> result = inverse;
        return (result == null) ? (inverse = invert()) : result;
      }
    
      private ImmutableSetMultimap<V, K> invert() {
        Builder<V, K> builder = builder();
        for (Entry<K, V> entry : entries()) {
          builder.put(entry.getValue(), entry.getKey());
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

     * limitations under the License.
     */
    
    package com.google.common.reflect;
    
    import static com.google.common.collect.Maps.immutableEntry;
    import static com.google.common.truth.Truth.assertThat;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.testing.MapTestSuiteBuilder;
    import com.google.common.collect.testing.SampleElements;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/CollectorTester.java

     * limitations under the License.
     */
    
    package com.google.common.testing;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static junit.framework.Assert.assertTrue;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Collections;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 6.5K bytes
    - Viewed (0)
Back to top