Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for unmodifiableList (0.19 sec)

  1. okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt

              if (cookies == null) cookies = mutableListOf()
              cookies.addAll(decodeHeaderAsJavaNetCookies(url, header))
            }
          }
        }
    
        return if (cookies != null) {
          Collections.unmodifiableList(cookies)
        } else {
          emptyList()
        }
      }
    
      /**
       * Convert a request header to OkHttp's cookies via [HttpCookie]. That extra step handles
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:10:43 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProject.java

            if (!ArtifactIdUtils.equalsVersionlessId(pomArtifact, projectArtifact)) {
                result.add(session.getArtifact(projectArtifact));
            }
            return Collections.unmodifiableList(result);
        }
    
        @Nonnull
        @Override
        public Packaging getPackaging() {
            return packaging;
        }
    
        @Nonnull
        @Override
        public Model getModel() {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultProfileActivationContext.java

            this.projectProperties = unmodifiable(projectProperties);
    
            return this;
        }
    
        private static List<String> unmodifiable(List<String> list) {
            return list != null ? Collections.unmodifiableList(list) : Collections.emptyList();
        }
    
        private static Map<String, String> unmodifiable(Map<String, String> map) {
            return map != null ? Collections.unmodifiableMap(map) : Collections.emptyMap();
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/ReactorReader.java

                    .values()
                    .stream()
                    .map(MavenProject::getVersion)
                    .collect(Collectors.collectingAndThen(Collectors.toList(), Collections::unmodifiableList));
            if (!versions.isEmpty()) {
                return versions;
            }
            return getAllProjects()
                    .getOrDefault(artifact.getGroupId(), Collections.emptyMap())
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

        new IteratorTester<T>(
            list.size() * 2 + 2, UNMODIFIABLE, list, IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<T> newTargetIterator() {
            Iterator<T> iterator = Collections.unmodifiableList(list).iterator();
            return Iterators.peekingIterator(iterator);
          }
        }.test();
      }
    
      public void testPeekingIteratorBehavesLikeIteratorOnEmptyIterable() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

        new IteratorTester<T>(
            list.size() * 2 + 2, UNMODIFIABLE, list, IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<T> newTargetIterator() {
            Iterator<T> iterator = Collections.unmodifiableList(list).iterator();
            return Iterators.peekingIterator(iterator);
          }
        }.test();
      }
    
      public void testPeekingIteratorBehavesLikeIteratorOnEmptyIterable() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/TopKSelector.java

        T[] topK = Arrays.copyOf(castBuffer, bufferSize);
        // we have to support null elements, so no ImmutableList for us
        return Collections.unmodifiableList(Arrays.asList(topK));
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/project/ProjectModelResolver.java

            this.resolver = resolver;
            this.remoteRepositoryManager = remoteRepositoryManager;
            this.pomRepositories = new ArrayList<>();
            this.externalRepositories = Collections.unmodifiableList(new ArrayList<>(repositories));
            this.repositories = new ArrayList<>();
            this.repositories.addAll(externalRepositories);
            this.repositoryMerging = repositoryMerging;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/FilteredEntryMultimap.java

            return null;
          } else if (unfiltered instanceof SetMultimap) {
            return Collections.unmodifiableSet(Sets.newLinkedHashSet(result));
          } else {
            return Collections.unmodifiableList(result);
          }
        }
    
        @Override
        Set<K> createKeySet() {
          @WeakOuter
          class KeySetImpl extends Maps.KeySet<K, Collection<V>> {
            KeySetImpl() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  10. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

            List<Restriction> restrictions;
    
            if (r1.isEmpty() || r2.isEmpty()) {
                restrictions = Collections.emptyList();
            } else {
                restrictions = Collections.unmodifiableList(intersection(r1, r2));
            }
    
            ArtifactVersion version = null;
            if (restrictions.size() > 0) {
                for (Restriction r : restrictions) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 18.9K bytes
    - Viewed (0)
Back to top