Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 113 for insert (0.24 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. 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 Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  3. 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)
  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. android/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 May 03 12:43:13 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/Helpers.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import static java.util.Collections.sort;
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.assertFalse;
    import static junit.framework.Assert.assertTrue;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/lang/FieldUtilTest.java

    package org.codelibs.core.lang;
    
    import static org.codelibs.core.TestUtil.sameClass;
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.nullValue;
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertThat;
    
    import java.lang.reflect.Field;
    import java.util.Collection;
    import java.util.Map;
    
    import org.codelibs.core.exception.ClIllegalArgumentException;
    import org.junit.Test;
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/lang/ThreadUtilTest.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.lang;
    
    import static org.junit.Assert.assertTrue;
    
    import org.junit.Test;
    
    /**
     * @author shinsuke
     *
     */
    public class ThreadUtilTest {
    
        /**
         * @throws Exception
         */
        @Test
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/lang/AnnotationUtilTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.lang;
    
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.nullValue;
    import static org.junit.Assert.assertThat;
    
    import java.lang.annotation.Annotation;
    import java.lang.reflect.Method;
    import java.util.Map;
    
    import org.junit.Test;
    
    /**
     * @author higa
     */
    public class AnnotationUtilTest {
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/beans/converter/SqlDateConverterTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.beans.converter;
    
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.not;
    import static org.junit.Assert.assertThat;
    
    import org.junit.Test;
    
    /**
     * @author higa
     */
    public class SqlDateConverterTest {
    
        /**
         * @throws Exception
         */
        @Test
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.6K bytes
    - Viewed (0)
Back to top