Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 169 for isImmutable (0.3 sec)

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

      }
    
      /**
       * Returns an immutable map containing the given entries, in order.
       *
       * @throws IllegalArgumentException if duplicate keys are provided
       */
      public static <K, V> ImmutableMap<K, V> of(K k1, V v1, K k2, V v2) {
        return RegularImmutableMap.fromEntries(entryOf(k1, v1), entryOf(k2, v2));
      }
    
      /**
       * Returns an immutable map containing the given entries, in order.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionSpliteratorTester.java

        // If add is supported, verify that IMMUTABLE is not reported.
        assertFalse(collection.spliterator().hasCharacteristics(Spliterator.IMMUTABLE));
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testSpliteratorNotImmutable_collectionAllowsRemove() {
        // If remove is supported, verify that IMMUTABLE is not reported.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Sets.java

            return ImmutableSet.of();
          } else {
            return ImmutableEnumSet.asImmutable(EnumSet.copyOf(collection));
          }
        } else {
          Iterator<E> itr = elements.iterator();
          if (itr.hasNext()) {
            EnumSet<E> enumSet = EnumSet.of(itr.next());
            Iterators.addAll(enumSet, itr);
            return ImmutableEnumSet.asImmutable(enumSet);
          } else {
            return ImmutableSet.of();
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectManager.java

         */
        @Nonnull
        Optional<Path> getPath(Project project);
    
        /**
         * Returns an immutable collection of attached artifacts for given project.
         */
        @Nonnull
        Collection<ProducedArtifact> getAttachedArtifacts(Project project);
    
        /**
         * Returns project's all artifacts as immutable collection. The list contains all artifacts, even the attached ones,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 24 11:52:48 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableSortedMap.java

        return (ImmutableSortedMap<K, V>) NATURAL_EMPTY_MAP;
      }
    
      /** Returns an immutable map containing a single entry. */
      public static <K extends Comparable<? super K>, V> ImmutableSortedMap<K, V> of(K k1, V v1) {
        return of(Ordering.natural(), k1, v1);
      }
    
      /** Returns an immutable map containing a single entry. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/DownloadedDependency.java

     */
    package org.apache.maven.api;
    
    import org.apache.maven.api.annotations.Experimental;
    import org.apache.maven.api.annotations.Immutable;
    
    /**
     * A {@link Dependency} that has been resolved, i.e. downloaded to the local repository.
     *
     * @since 4.0.0
     */
    @Experimental
    @Immutable
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/DownloadedArtifact.java

    import java.nio.file.Path;
    
    import org.apache.maven.api.annotations.Experimental;
    import org.apache.maven.api.annotations.Immutable;
    
    /**
     * An {@link Artifact} that has been resolved, i.e. downloaded to the local repository.
     *
     * @since 4.0.0
     */
    @Experimental
    @Immutable
    public interface DownloadedArtifact extends Artifact {
    
        /**
         * {@return the actual file that has been downloaded in the file system}
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/TransferResourceIdentifier.java

    package org.apache.maven.cli.transfer;
    
    import java.io.File;
    
    import org.apache.maven.api.annotations.Nullable;
    import org.eclipse.aether.transfer.TransferResource;
    
    /**
     * Immutable identifier of a {@link TransferResource}.
     * The {@link TransferResource} is not immutable and does not implement {@code Objects#equals} and {@code Objects#hashCode} methods,
     * making it not very suitable for usage in collections.
     */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/DenseImmutableTable.java

      private final ImmutableMap<C, ImmutableMap<R, V>> columnMap;
    
      @SuppressWarnings("Immutable") // We don't modify this after construction.
      private final int[] rowCounts;
    
      @SuppressWarnings("Immutable") // We don't modify this after construction.
      private final int[] columnCounts;
    
      @SuppressWarnings("Immutable") // We don't modify this after construction.
      private final @Nullable V[][] values;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/DependencyCoordinates.java

     * under the License.
     */
    package org.apache.maven.api;
    
    import java.util.Collection;
    
    import org.apache.maven.api.annotations.Experimental;
    import org.apache.maven.api.annotations.Immutable;
    import org.apache.maven.api.annotations.Nonnull;
    import org.apache.maven.api.annotations.Nullable;
    
    /**
     * {@code ArtifactCoordinates} completed with information about how the artifact will be used.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Sep 28 09:03:24 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top