Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 625 for Collections2 (0.23 sec)

  1. guava/src/com/google/common/collect/Maps.java

          Map<K, ? extends V> map) {
        if (map instanceof SortedMap) {
          return Collections.unmodifiableSortedMap((SortedMap<K, ? extends V>) map);
        } else {
          return Collections.unmodifiableMap(map);
        }
      }
    
      static class MapDifferenceImpl<K extends @Nullable Object, V extends @Nullable Object>
          implements MapDifference<K, V> {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Lists.java

       * list is threadsafe if the supplied list and function are.
       *
       * <p>If only a {@code Collection} or {@code Iterable} input is available, use {@link
       * Collections2#transform} or {@link Iterables#transform}.
       *
       * <p><b>Note:</b> serializing the returned list is implemented by serializing {@code fromList},
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Multimaps.java

            return Collections.unmodifiableSortedSet((SortedSet<E>) collection);
          } else if (collection instanceof Set) {
            return Collections.unmodifiableSet((Set<E>) collection);
          } else if (collection instanceof List) {
            return Collections.unmodifiableList((List<E>) collection);
          } else {
            return Collections.unmodifiableCollection(collection);
          }
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Synchronized.java

              };
            }
          };
        }
    
        // See Collections.CheckedMap.CheckedEntrySet for details on attacks.
    
        @Override
        public @Nullable Object[] toArray() {
          synchronized (mutex) {
            /*
             * toArrayImpl returns `@Nullable Object[]` rather than `Object[]` but only because it can
             * be used with collections that may contain null. This collection never contains nulls, so
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Synchronized.java

              };
            }
          };
        }
    
        // See Collections.CheckedMap.CheckedEntrySet for details on attacks.
    
        @Override
        public @Nullable Object[] toArray() {
          synchronized (mutex) {
            /*
             * toArrayImpl returns `@Nullable Object[]` rather than `Object[]` but only because it can
             * be used with collections that may contain null. This collection never contains nulls, so
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Sets.java

       * This method is not actually very useful and will likely be deprecated in the future.
       */
      @SuppressWarnings("NonApiType") // acts as a direct substitute for a constructor call
      public static <E extends @Nullable Object> HashSet<E> newHashSet(E... elements) {
        HashSet<E> set = newHashSetWithExpectedSize(elements.length);
        Collections.addAll(set, elements);
        return set;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/internal/impl/Lifecycles.java

    public class Lifecycles {
    
        static Lifecycle.Phase phase(String name) {
            return new DefaultPhase(name, Collections.emptyList(), Collections.emptyList(), Collections.emptyList());
        }
    
        static Lifecycle.Phase phase(String name, Lifecycle.Phase... phases) {
            return new DefaultPhase(name, Collections.emptyList(), Collections.emptyList(), asList(phases));
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7K bytes
    - Viewed (0)
  8. compat/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);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. compat/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);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/scopes/Maven4ScopeManagerConfiguration.java

            result.add(internalScopeManager.createResolutionScope(
                    RS_NONE,
                    InternalScopeManager.Mode.REMOVE,
                    Collections.emptySet(),
                    Collections.emptySet(),
                    allDependencyScopes));
            result.add(internalScopeManager.createResolutionScope(
                    RS_MAIN_COMPILE,
                    InternalScopeManager.Mode.ELIMINATE,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top