Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 2,056 for collections (0.2 sec)

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

        SORTED {
          @Override
          void arrange(List<Integer> list) {
            Collections.sort(list);
          }
        },
        ALMOST_SORTED {
          @Override
          void arrange(List<Integer> list) {
            Collections.sort(list);
            if (list.size() > 1) {
              int i = (list.size() - 1) / 2;
              Collections.swap(list, i, i + 1);
            }
          }
        },
        RANDOM {
          @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.5K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactInstallerRequest.java

                private final Collection<Artifact> artifacts;
    
                DefaultArtifactInstallerRequest(@Nonnull Session session, @Nonnull Collection<Artifact> artifacts) {
                    super(session);
                    this.artifacts = unmodifiable(nonNull(artifacts, "artifacts cannot be null"));
                }
    
                @Nonnull
                @Override
                public Collection<Artifact> getArtifacts() {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Mar 23 05:29:39 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/package-info.java

     * limitations under the License.
     */
    
    /**
     * Collection interfaces and implementations, and other utilities for collections. This package is a
     * part of the open-source <a href="https://github.com/google/guava">Guava</a> library.
     *
     * <p>The classes in this package include:
     *
     * <h2>Immutable collections</h2>
     *
     * These are collections whose contents will never change. They also offer a few additional
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jul 06 16:29:45 GMT 2023
    - 5K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/AbstractSession.java

                Collections.synchronizedMap(new WeakHashMap<>());
        private final Map<org.eclipse.aether.artifact.Artifact, Artifact> allArtifacts =
                Collections.synchronizedMap(new WeakHashMap<>());
        private final Map<org.eclipse.aether.repository.RemoteRepository, RemoteRepository> allRepositories =
                Collections.synchronizedMap(new WeakHashMap<>());
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Apr 23 12:55:57 GMT 2024
    - 27.3K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/model/plugin/DefaultLifecycleBindingsInjector.java

    import javax.inject.Inject;
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.LinkedHashMap;
    import java.util.List;
    import java.util.Map;
    import java.util.stream.Collectors;
    
    import org.apache.maven.api.model.Build;
    import org.apache.maven.api.model.Model;
    import org.apache.maven.api.model.Plugin;
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

      }
    
      protected Collection<Method> suppressForSingletonSet() {
        return Collections.emptySet();
      }
    
      protected Collection<Method> suppressForHashSet() {
        return Collections.emptySet();
      }
    
      protected Collection<Method> suppressForLinkedHashSet() {
        return Collections.emptySet();
      }
    
      protected Collection<Method> suppressForEnumSet() {
        return Collections.emptySet();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/IterablesTest.java

        Iterable<String> iterable = Collections.singletonList("foo");
        assertEquals("foo", Iterables.getLast(iterable, "bar"));
      }
    
      public void testGetLast_withDefault_empty() {
        Iterable<String> iterable = Collections.emptyList();
        assertEquals("bar", Iterables.getLast(iterable, "bar"));
      }
    
      public void testGetLast_withDefault_empty_null() {
        Iterable<String> iterable = Collections.emptyList();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/JapicmpTask.java

    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Apr 26 10:58:32 GMT 2023
    - 13.3K bytes
    - Viewed (0)
  9. maven-compat/src/main/java/org/apache/maven/repository/MetadataResolutionResult.java

            return missingArtifacts != null && !missingArtifacts.isEmpty();
        }
    
        public List<Artifact> getMissingArtifacts() {
            return missingArtifacts == null ? Collections.emptyList() : Collections.unmodifiableList(missingArtifacts);
        }
    
        public MetadataResolutionResult addMissingArtifact(Artifact artifact) {
            missingArtifacts = initList(missingArtifacts);
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/internal/impl/AbstractSession.java

                Collections.synchronizedMap(new WeakHashMap<>());
        private final Map<org.eclipse.aether.artifact.Artifact, Artifact> allArtifacts =
                Collections.synchronizedMap(new WeakHashMap<>());
        private final Map<org.eclipse.aether.repository.RemoteRepository, RemoteRepository> allRepositories =
                Collections.synchronizedMap(new WeakHashMap<>());
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 21.7K bytes
    - Viewed (0)
Back to top