Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 420 for copyTo0 (0.06 seconds)

  1. android/guava/src/com/google/common/graph/ImmutableValueGraph.java

    import com.google.errorprone.annotations.InlineMe;
    
    /**
     * A {@link ValueGraph} whose elements and structural relationships will never change. Instances of
     * this class may be obtained with {@link #copyOf(ValueGraph)}.
     *
     * <p>See the Guava User's Guide's <a
     * href="https://github.com/google/guava/wiki/GraphsExplained#immutable-implementations">discussion
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

        return (ImmutableRangeSet<C>) ALL;
      }
    
      /** Returns an immutable copy of the specified {@code RangeSet}. */
      public static <C extends Comparable> ImmutableRangeSet<C> copyOf(RangeSet<C> rangeSet) {
        checkNotNull(rangeSet);
        if (rangeSet.isEmpty()) {
          return of();
        } else if (rangeSet.encloses(Range.all())) {
          return all();
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 27.5K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapGenerators.java

            builder.put(entry.getKey(), entry.getValue());
          }
          return ImmutableBiMap.copyOf(builder);
        }
      }
    
      public static class ImmutableBiMapCopyOfEntriesGenerator extends TestStringBiMapGenerator {
        @Override
        protected BiMap<String, String> create(Entry<String, String>[] entries) {
          return ImmutableBiMap.copyOf(asList(entries));
        }
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/graph/DirectedMultiNetworkConnections.java

      }
    
      static <N, E> DirectedMultiNetworkConnections<N, E> ofImmutable(
          Map<E, N> inEdges, Map<E, N> outEdges, int selfLoopCount) {
        return new DirectedMultiNetworkConnections<>(
            ImmutableMap.copyOf(inEdges), ImmutableMap.copyOf(outEdges), selfLoopCount);
      }
    
      @LazyInit private transient @Nullable Reference<Multiset<N>> predecessorsReference;
    
      @Override
      public Set<N> predecessors() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 4.6K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/io/CharSinkTest.java

          TestCharSource failSource = new TestCharSource(STRING, option);
          TestCharSink okSink = new TestCharSink();
          assertThrows(IOException.class, () -> failSource.copyTo(okSink));
          // ensure writer was closed IF it was opened (depends on implementation whether or not it's
          // opened at all if source.newReader() throws).
          assertTrue(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/collect/AbstractRangeSetTest.java

        assertEquals(!rangeSet.asRanges().iterator().hasNext(), rangeSet.isEmpty());
        assertEquals(!rangeSet.asDescendingSetOfRanges().iterator().hasNext(), rangeSet.isEmpty());
    
        List<Range<C>> asRanges = ImmutableList.copyOf(rangeSet.asRanges());
    
        // test that connected ranges are coalesced
        for (int i = 0; i + 1 < asRanges.size(); i++) {
          Range<C> range1 = asRanges.get(i);
          Range<C> range2 = asRanges.get(i + 1);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/ImmutableTable.java

       */
      public static <R, C, V> ImmutableTable<R, C, V> copyOf(
          Table<? extends R, ? extends C, ? extends V> table) {
        if (table instanceof ImmutableTable) {
          @SuppressWarnings("unchecked")
          ImmutableTable<R, C, V> parameterizedTable = (ImmutableTable<R, C, V>) table;
          return parameterizedTable;
        } else {
          return copyOf(table.cellSet());
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 17.3K bytes
    - Click Count (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeResult.java

        public UpgradeResult {
            // Defensive copying to ensure immutability
            processedPoms = Set.copyOf(processedPoms);
            modifiedPoms = Set.copyOf(modifiedPoms);
            errorPoms = Set.copyOf(errorPoms);
        }
    
        /**
         * Creates a successful result with the specified processed and modified POMs.
         */
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Jun 07 06:22:47 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableBiMap.java

        }
    
        if (map.isEmpty()) {
          return of();
        }
    
        ImmutableMap<K, V> immutableMap = ImmutableMap.copyOf(map);
        return new RegularImmutableBiMap<K, V>(immutableMap);
      }
    
      public static <K, V> ImmutableBiMap<K, V> copyOf(
          Iterable<? extends Entry<? extends K, ? extends V>> entries) {
        return new Builder<K, V>().putAll(entries).build();
      }
    
      ImmutableBiMap(Map<K, V> delegate) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 18:32:41 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/math/MathTesting.java

        POSITIVE_INTEGER_CANDIDATES = intValues.build();
        NEGATIVE_INTEGER_CANDIDATES =
            ImmutableList.copyOf(
                Iterables.concat(
                    Iterables.transform(POSITIVE_INTEGER_CANDIDATES, x -> -x),
                    ImmutableList.of(Integer.MIN_VALUE)));
        NONZERO_INTEGER_CANDIDATES =
            ImmutableList.copyOf(
                Iterables.concat(POSITIVE_INTEGER_CANDIDATES, NEGATIVE_INTEGER_CANDIDATES));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 9.9K bytes
    - Click Count (0)
Back to Top