Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 8,503 for copyOf (0.11 sec)

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

            ImmutableValueGraph.copyOf(ValueGraphBuilder.directed().<String, Integer>build());
        ValueGraph<String, Integer> graph2 = ImmutableValueGraph.copyOf(graph1);
    
        assertThat(graph2).isSameInstanceAs(graph1);
      }
    
      @Test
      public void incidentEdgeOrder_stable() {
        ImmutableValueGraph<String, Integer> immutableValueGraph =
            ImmutableValueGraph.copyOf(ValueGraphBuilder.directed().<String, Integer>build());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 6.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableMultimapAsMapImplementsMapTest.java

      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        Multimap<String, Integer> delegate = HashMultimap.create();
        populate(delegate);
        return ImmutableMultimap.copyOf(delegate).asMap();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/FauxveridesTest.java

     * each immutable-collection class. This ensures, for example, that a call written "{@code
     * ImmutableSortedSet.copyOf()}" cannot secretly be a call to {@code ImmutableSet.copyOf()}.
     *
     * @author Chris Povirk
     */
    public class FauxveridesTest extends TestCase {
      public void testImmutableBiMap() {
        doHasAllFauxveridesTest(ImmutableBiMap.class, ImmutableMap.class);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/FauxveridesTest.java

     * each immutable-collection class. This ensures, for example, that a call written "{@code
     * ImmutableSortedSet.copyOf()}" cannot secretly be a call to {@code ImmutableSet.copyOf()}.
     *
     * @author Chris Povirk
     */
    public class FauxveridesTest extends TestCase {
      public void testImmutableBiMap() {
        doHasAllFauxveridesTest(ImmutableBiMap.class, ImmutableMap.class);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

            ImmutableValueGraph.copyOf(ValueGraphBuilder.directed().<String, Integer>build());
        ValueGraph<String, Integer> graph2 = ImmutableValueGraph.copyOf(graph1);
    
        assertThat(graph2).isSameInstanceAs(graph1);
      }
    
      @Test
      public void incidentEdgeOrder_stable() {
        ImmutableValueGraph<String, Integer> immutableValueGraph =
            ImmutableValueGraph.copyOf(ValueGraphBuilder.directed().<String, Integer>build());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 6.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/BytesTest.java

      }
    
      private static void testReverse(byte[] input, byte[] expectedOutput) {
        input = Arrays.copyOf(input, input.length);
        Bytes.reverse(input);
        assertThat(input).isEqualTo(expectedOutput);
      }
    
      private static void testReverse(byte[] input, int fromIndex, int toIndex, byte[] expectedOutput) {
        input = Arrays.copyOf(input, input.length);
        Bytes.reverse(input, fromIndex, toIndex);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

         */
        assertThat(ImmutableIntArray.copyOf(new int[0])).isSameInstanceAs(ImmutableIntArray.of());
      }
    
      public void testCopyOf_array_nonempty() {
        int[] array = new int[] {0, 1, 3};
        ImmutableIntArray iia = ImmutableIntArray.copyOf(array);
        array[2] = 2;
        assertThat(iia.asList()).containsExactly(0, 1, 3).inOrder();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  8. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  9. android/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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/primitives/ImmutableIntArray.java

      /** Returns an immutable array containing the given values, in order. */
      public static ImmutableIntArray copyOf(int[] values) {
        return values.length == 0 ? EMPTY : new ImmutableIntArray(Arrays.copyOf(values, values.length));
      }
    
      /** Returns an immutable array containing the given values, in order. */
      public static ImmutableIntArray copyOf(Collection<Integer> values) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.4K bytes
    - Viewed (0)
Back to top