Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 607 for arrayList (0.06 sec)

  1. src/test/java/org/codelibs/fess/util/MemoryUtilTest.java

            assertEquals(0L, MemoryUtil.sizeOf(new ArrayList<>()));
    
            // Collection with null elements
            List<String> listWithNulls = new ArrayList<>();
            listWithNulls.add(null);
            listWithNulls.add(null);
            assertEquals(0L, MemoryUtil.sizeOf(listWithNulls));
    
            // Mixed content collection
            List<Object> mixedList = new ArrayList<>();
            mixedList.add("test");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java

      public void testValues() {
        List<V> expected = new ArrayList<>();
        for (Entry<K, V> entry : getSampleElements()) {
          expected.add(entry.getValue());
        }
        assertEqualIgnoringOrder(expected, multimap().values());
      }
    
      @CollectionFeature.Require(KNOWN_ORDER)
      public void testValuesInOrder() {
        List<V> expected = new ArrayList<>();
        for (Entry<K, V> entry : getOrderedElements()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/helper/DataIndexHelperTest.java

                @Override
                public List<DataConfig> getAllDataConfigList() {
                    return new ArrayList<>(); // Always return empty for fast tests
                }
    
                @Override
                public List<DataConfig> getDataConfigListByIds(List<String> configIdList) {
                    return new ArrayList<>(); // Always return empty for fast tests
                }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java

      public void testValues() {
        List<V> expected = new ArrayList<>();
        for (Entry<K, V> entry : getSampleElements()) {
          expected.add(entry.getValue());
        }
        assertEqualIgnoringOrder(expected, multimap().values());
      }
    
      @CollectionFeature.Require(KNOWN_ORDER)
      public void testValuesInOrder() {
        List<V> expected = new ArrayList<>();
        for (Entry<K, V> entry : getOrderedElements()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        @SuppressWarnings("rawtypes") // raw class ArrayList.class
        Constructor<ArrayList> constructor = ArrayList.class.getConstructor();
        assertEquals(
            TypeToken.of(ArrayList.class),
            TypeToken.of(ArrayList.class).constructor(constructor).getOwnerType());
        assertEquals(
            new TypeToken<ArrayList<String>>() {},
            new TypeToken<ArrayList<String>>() {}.constructor(constructor).getOwnerType());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        List<ParameterNotInstantiableException> paramErrors = new ArrayList<>();
        List<ParameterHasNoDistinctValueException> distinctValueErrors = new ArrayList<>();
        List<InvocationTargetException> instantiationExceptions = new ArrayList<>();
        List<FactoryMethodReturnsNullException> nullErrors = new ArrayList<>();
        // Try factories with the greatest number of parameters.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

          int selectedIndex = random.nextInt(elements.size());
          q.offer(elements.remove(selectedIndex));
        }
      }
    
      private ArrayList<Integer> createOrderedList(int size) {
        ArrayList<Integer> elements = new ArrayList<>(size);
        for (int i = 0; i < size; i++) {
          elements.add(i);
        }
        return elements;
      }
    
      public void testIsEvenLevel() {
        assertTrue(MinMaxPriorityQueue.isEvenLevel(0));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36K bytes
    - Viewed (0)
  8. compat/maven-compat/src/test/java/org/apache/maven/project/ClasspathArtifactResolver.java

     */
    package org.apache.maven.project;
    
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.io.FileNotFoundException;
    import java.net.URISyntaxException;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.List;
    
    import org.eclipse.aether.RepositorySystemSession;
    import org.eclipse.aether.artifact.Artifact;
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/collect/HashMultisetAddPresentBenchmark.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.Random;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Benchmark for HashMultiset.add for an already-present element.
     *
     * @author Louis Wasserman
     */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

      public void testIterator() {
        List<E> iteratorElements = new ArrayList<>();
        for (E element : collection) { // uses iterator()
          iteratorElements.add(element);
        }
        assertEqualIgnoringOrder(asList(createSamplesArray()), iteratorElements);
      }
    
      @CollectionFeature.Require(KNOWN_ORDER)
      public void testIterationOrdering() {
        List<E> iteratorElements = new ArrayList<>();
        for (E element : collection) { // uses iterator()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.1K bytes
    - Viewed (0)
Back to top