Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for mutable (0.07 sec)

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

     * suggestions.
     *
     */
    public class SortedCopyBenchmark {
      @Param({"1", "10", "1000", "1000000"})
      int size; // logarithmic triangular
    
      @Param boolean mutable;
    
      @Param InputOrder inputOrder;
    
      enum InputOrder {
        SORTED {
          @Override
          void arrange(List<Integer> list) {
            sort(list);
          }
        },
        ALMOST_SORTED {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java

     * suggestions.
     *
     */
    public class SortedCopyBenchmark {
      @Param({"1", "10", "1000", "1000000"})
      int size; // logarithmic triangular
    
      @Param boolean mutable;
    
      @Param InputOrder inputOrder;
    
      enum InputOrder {
        SORTED {
          @Override
          void arrange(List<Integer> list) {
            sort(list);
          }
        },
        ALMOST_SORTED {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/TransformerContextBuilder.java

         * @param problems the problemCollector
         * @return the mutable transformerContext
         */
        TransformerContext initialize(ModelBuildingRequest request, ModelProblemCollector problems);
    
        /**
         * The immutable transformerContext, can be used after the buildplan is finished.
         *
         * @return the immutable transformerContext
         */
        TransformerContext build();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/artifact/repository/RepositoryCache.java

    //
    public interface RepositoryCache {
    
        /**
         * Puts the specified data into the cache. <strong>Warning:</strong> The cache will directly save the provided
         * reference. If the cached data is mutable, i.e. could be modified after being put into the cache, the caller is
         * responsible for creating a copy of the original data and store the copy in the cache.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Lists.java

       *     those lists should appear in the resulting lists
       * @param <B> any common base class shared by all axes (often just {@link Object})
       * @return the Cartesian product, as an immutable list containing immutable lists
       * @throws IllegalArgumentException if the size of the cartesian product would be greater than
       *     {@link Integer#MAX_VALUE}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java

     * attributes of this artifact.
     *
     * TODO I think this exposes a design flaw in that the immutable and mutable parts of an artifact are in one class and
     * should be split. ie scope, file, etc depend on the context of use, whereas everything else is immutable.
     */
    @Deprecated
    public class ActiveProjectArtifact implements Artifact {
        private final Artifact artifact;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/OrderingTest.java

      }
    
      private static <T extends @Nullable Object> List<T> shuffledCopy(List<T> in, Random random) {
        List<T> mutable = newArrayList(in);
        List<T> out = newArrayList();
        while (!mutable.isEmpty()) {
          out.add(mutable.remove(random.nextInt(mutable.size())));
        }
        return out;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/OrderingTest.java

      }
    
      private static <T extends @Nullable Object> List<T> shuffledCopy(List<T> in, Random random) {
        List<T> mutable = newArrayList(in);
        List<T> out = newArrayList();
        while (!mutable.isEmpty()) {
          out.add(mutable.remove(random.nextInt(mutable.size())));
        }
        return out;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/io/CharSource.java

       * that this method will return a different number of chars than would be returned by reading all
       * of the chars.
       *
       * <p>Additionally, for mutable sources such as {@code StringBuilder}s, a subsequent read may
       * return a different number of chars if the contents are changed.
       *
       * @since 19.0
       */
      public Optional<Long> lengthIfKnown() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableTableTest.java

      }
    
      public void testCopyOfSparse() {
        Table<Character, Integer, String> table = TreeBasedTable.create();
        table.put('x', 2, "foo");
        table.put('r', 1, "bar");
        table.put('c', 3, "baz");
        table.put('b', 7, "cat");
        table.put('e', 5, "dog");
        table.put('c', 0, "axe");
        table.put('e', 3, "tub");
        table.put('r', 4, "foo");
        table.put('x', 5, "bar");
        validateTableCopies(table);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top