Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 618 for copyBuf (0.47 sec)

  1. android/guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java

      }
    
      @Test
      public void copyOfImmutableNetwork_optimized() {
        Network<String, String> network1 =
            ImmutableNetwork.copyOf(NetworkBuilder.directed().<String, String>build());
        Network<String, String> network2 = ImmutableNetwork.copyOf(network1);
    
        assertThat(network2).isSameInstanceAs(network1);
      }
    
      @Test
      public void edgesConnecting_directed() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun May 05 18:02:35 UTC 2019
    - 5.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

       *     ImmutableSortedMultiset#copyOf(Comparable[])}.</b>
       */
      @DoNotCall("Elements must be Comparable. (Or, pass a Comparator to orderedBy or copyOf.)")
      @Deprecated
      // The usage of "Z" here works around bugs in Javadoc (JDK-8318093) and JDiff.
      public static <Z> ImmutableSortedMultiset<Z> copyOf(Z[] elements) {
        throw new UnsupportedOperationException();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 35.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/SparseImmutableTable.java

          rowBuilder.put(row.getKey(), ImmutableMap.copyOf(row.getValue()));
        }
        this.rowMap = rowBuilder.buildOrThrow();
    
        ImmutableMap.Builder<C, ImmutableMap<R, V>> columnBuilder =
            new ImmutableMap.Builder<>(columns.size());
        for (Entry<C, Map<R, V>> col : columns.entrySet()) {
          columnBuilder.put(col.getKey(), ImmutableMap.copyOf(col.getValue()));
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

        return copyOf(elements);
      }
    
      public static <E> ImmutableList<E> copyOf(Iterable<? extends E> elements) {
        checkNotNull(elements); // for GWT
        return (elements instanceof Collection)
            ? copyOf((Collection<? extends E>) elements)
            : copyOf(elements.iterator());
      }
    
      public static <E> ImmutableList<E> copyOf(Iterator<? extends E> elements) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/ImmutableDoubleArray.java

      public static ImmutableDoubleArray copyOf(double[] values) {
        return values.length == 0
            ? EMPTY
            : new ImmutableDoubleArray(Arrays.copyOf(values, values.length));
      }
    
      /** Returns an immutable array containing the given values, in order. */
      public static ImmutableDoubleArray copyOf(Collection<Double> values) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 16:34:24 UTC 2023
    - 21.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/primitives/ImmutableLongArray.java

      public static ImmutableLongArray copyOf(long[] values) {
        return values.length == 0
            ? EMPTY
            : new ImmutableLongArray(Arrays.copyOf(values, values.length));
      }
    
      /** Returns an immutable array containing the given values, in order. */
      public static ImmutableLongArray copyOf(Collection<Long> values) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 16:34:24 UTC 2023
    - 21K bytes
    - Viewed (0)
  7. subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/internal/text/StyledTable.java

            this.indent = indent;
            this.headers = ImmutableList.copyOf(headers);
            this.rows = ImmutableList.copyOf(rows);
        }
    
        public static final class Row {
            public final List<String> text;
            public final StyledTextOutput.Style style;
    
            public Row(List<String> text, StyledTextOutput.Style style) {
                this.text = ImmutableList.copyOf(text);
                this.style = style;
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 22 21:03:24 UTC 2022
    - 4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

         */
        assertThat(ImmutableLongArray.copyOf(new long[0])).isSameInstanceAs(ImmutableLongArray.of());
      }
    
      public void testCopyOf_array_nonempty() {
        long[] array = new long[] {0, 1, 3};
        ImmutableLongArray iia = ImmutableLongArray.copyOf(array);
        array[2] = 2;
        assertThat(iia.asList()).containsExactly(0L, 1L, 3L).inOrder();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/verification/model/ImmutableArtifactVerificationMetadata.java

            this.artifactName = artifactName;
            this.checksums = ImmutableList.copyOf(checksums);
            this.trustedPgpKeys = ImmutableSet.copyOf(trustedPgpKeys);
            this.ignoredPgpKeys = ImmutableSet.copyOf(ignoredPgpKeys);
            this.hashCode = computeHashCode();
        }
    
        @Override
        public String getArtifactName() {
            return artifactName;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

         */
        assertThat(ImmutableDoubleArray.copyOf(new double[0]))
            .isSameInstanceAs(ImmutableDoubleArray.of());
      }
    
      public void testCopyOf_array_nonempty() {
        double[] array = new double[] {0, 1, 3};
        ImmutableDoubleArray iia = ImmutableDoubleArray.copyOf(array);
        array[2] = 2;
        assertThat(iia.asList()).containsExactly(0.0, 1.0, 3.0).inOrder();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 21.3K bytes
    - Viewed (0)
Back to top