Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 682 for ArrayList (0.2 sec)

  1. guava-tests/benchmark/com/google/common/collect/IteratorBenchmark.java

      Object[] array;
      ArrayList<Object> arrayList;
      LinkedList<Object> linkedList;
    
      @BeforeExperiment
      void setUp() {
        array = new Object[size];
        arrayList = Lists.newArrayListWithCapacity(size);
        linkedList = Lists.newLinkedList();
    
        for (int i = 0; i < size; i++) {
          Object value = new Object();
          array[i] = value;
          arrayList.add(value);
          linkedList.add(value);
        }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.1K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/collect/IteratorBenchmark.java

      Object[] array;
      ArrayList<Object> arrayList;
      LinkedList<Object> linkedList;
    
      @BeforeExperiment
      void setUp() {
        array = new Object[size];
        arrayList = Lists.newArrayListWithCapacity(size);
        linkedList = Lists.newLinkedList();
    
        for (int i = 0; i < size; i++) {
          Object value = new Object();
          array[i] = value;
          arrayList.add(value);
          linkedList.add(value);
        }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java

        assertTrue(
            "A List should equal any other List containing the same elements.",
            getList().equals(new ArrayList<E>(getOrderedElements())));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherListWithDifferentElements() {
        ArrayList<E> other = new ArrayList<>(getSampleElements());
        other.set(other.size() / 2, getSubjectGenerator().samples().e3());
        assertFalse(
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java

        assertTrue(
            "A List should equal any other List containing the same elements.",
            getList().equals(new ArrayList<E>(getOrderedElements())));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherListWithDifferentElements() {
        ArrayList<E> other = new ArrayList<>(getSampleElements());
        other.set(other.size() / 2, getSubjectGenerator().samples().e3());
        assertFalse(
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingRequest.java

            processPlugins = true;
            profiles = new ArrayList<>();
            activeProfileIds = new ArrayList<>();
            inactiveProfileIds = new ArrayList<>();
            systemProperties = new Properties();
            userProperties = new Properties();
            remoteRepositories = new ArrayList<>();
            pluginArtifactRepositories = new ArrayList<>();
        }
    
    Java
    - Registered: Sun Apr 14 03:35:08 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 8.9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java

                    crawlingInfoHelper.generateId(dataMap));
    
            final List<String> browserTypeList = new ArrayList<String>();
            dataMap.put("type", browserTypeList);
            final List<String> roleTypeList = new ArrayList<String>();
            dataMap.put("role", roleTypeList);
    
            assertEquals(
    Java
    - Registered: Mon Apr 15 08:04:17 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ArrayListMultimap.java

       *     call, or switch to a {@code HashMap<K, ArrayList<V>>}.
       */
      @Deprecated
      public void trimToSize() {
        for (Collection<V> collection : backingMap().values()) {
          ArrayList<V> arrayList = (ArrayList<V>) collection;
          arrayList.trimToSize();
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/project/DefaultDependencyResolutionResult.java

        private DependencyNode root;
    
        private List<Dependency> dependencies = new ArrayList<>();
    
        private List<Dependency> resolvedDependencies = new ArrayList<>();
    
        private List<Dependency> unresolvedDependencies = new ArrayList<>();
    
        private List<Exception> collectionErrors = new ArrayList<>();
    
        private Map<Dependency, List<Exception>> resolutionErrors = new IdentityHashMap<>();
    
    Java
    - Registered: Sun Apr 14 03:35:08 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/TestsForListsInJavaUtil.java

                new TestStringListGenerator() {
                  @Override
                  public List<String> create(String[] elements) {
                    return new ArrayList<>(MinimalCollection.of(elements));
                  }
                })
            .named("ArrayList")
            .withFeatures(
                ListFeature.GENERAL_PURPOSE,
                CollectionFeature.SERIALIZABLE,
                CollectionFeature.ALLOWS_NULL_VALUES,
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 11.6K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java

        @Override
        public List<Proxy> getProxies() {
            if (proxies == null) {
                proxies = new ArrayList<>();
            }
            return proxies;
        }
    
        @Override
        public MavenExecutionRequest setProxies(List<Proxy> proxies) {
            if (proxies != null) {
                this.proxies = new ArrayList<>(proxies);
            } else {
                this.proxies = null;
            }
    
            return this;
    Java
    - Registered: Sun Apr 14 03:35:08 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 31K bytes
    - Viewed (0)
Back to top