Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,056 for collections (0.32 sec)

  1. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46K bytes
    - Viewed (0)
  2. maven-core/src/test/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactoryTest.java

                    settingsDecrypter,
                    eventSpyDispatcher,
                    information,
                    defaultTypeRegistry,
                    versionScheme,
                    Collections.emptyMap(),
                    Collections.emptyMap());
    
            MavenExecutionRequest request = new DefaultMavenExecutionRequest();
            request.setLocalRepository(getLocalRepository());
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Mar 27 14:46:12 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/plugin/prefix/DefaultPluginPrefixRequest.java

     * @since 3.0
     */
    public class DefaultPluginPrefixRequest implements PluginPrefixRequest {
    
        private String prefix;
    
        private List<String> pluginGroups = Collections.emptyList();
    
        private Model pom;
    
        private List<RemoteRepository> repositories = Collections.emptyList();
    
        private RepositorySystemSession session;
    
        /**
         * Creates an empty request.
         */
        public DefaultPluginPrefixRequest() {}
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/features/CollectionFeature.java

      /**
       * For documenting collections that support no optional features, such as {@link
       * java.util.Collections#emptySet}
       */
      NONE;
    
      private final Set<Feature<? super Collection>> implied;
    
      CollectionFeature(Feature<? super Collection>... implied) {
        this.implied = Helpers.copyToSet(implied);
      }
    
      @Override
      public Set<Feature<? super Collection>> getImpliedFeatures() {
        return implied;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultProfileActivationContext.java

        private List<String> activeProfileIds = Collections.emptyList();
    
        private List<String> inactiveProfileIds = Collections.emptyList();
    
        private Map<String, String> systemProperties = Collections.emptyMap();
    
        private Map<String, String> userProperties = Collections.emptyMap();
    
        private Map<String, String> projectProperties = Collections.emptyMap();
    
        private Path projectDirectory;
    
    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. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.5K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/ReactorReader.java

                    .getOrDefault(artifact.getGroupId(), Collections.emptyMap())
                    .getOrDefault(artifact.getArtifactId(), Collections.emptyMap())
                    .values()
                    .stream()
                    .map(MavenProject::getVersion)
                    .collect(Collectors.collectingAndThen(Collectors.toList(), Collections::unmodifiableList));
            if (!versions.isEmpty()) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ListsTest.java

        assertEquals(Collections.emptyList(), list);
      }
    
      public void testNewLinkedListFromCollection() {
        LinkedList<Integer> list = Lists.newLinkedList(SOME_COLLECTION);
        assertEquals(SOME_COLLECTION, list);
      }
    
      public void testNewLinkedListFromIterable() {
        LinkedList<Integer> list = Lists.newLinkedList(SOME_ITERABLE);
        assertEquals(SOME_COLLECTION, list);
      }
    
      @J2ktIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

    import static com.google.common.collect.testing.IteratorFeature.UNMODIFIABLE;
    import static java.util.Collections.emptyList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.collect.testing.IteratorTester;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.Iterator;
    import java.util.List;
    import java.util.NoSuchElementException;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
  10. maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionResult.java

            return missingArtifacts != null && !missingArtifacts.isEmpty();
        }
    
        public List<Artifact> getMissingArtifacts() {
            return missingArtifacts == null ? Collections.emptyList() : Collections.unmodifiableList(missingArtifacts);
        }
    
        public ArtifactResolutionResult 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.9K bytes
    - Viewed (0)
Back to top