Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for testAsList_toArray_roundTrip (0.23 sec)

  1. guava-tests/test/com/google/common/primitives/BytesTest.java

        list.set(0, (byte) 2);
        assertThat(array).isEqualTo(new byte[] {(byte) 2, (byte) 1});
        array[1] = (byte) 3;
        assertThat(list).containsExactly((byte) 2, (byte) 3).inOrder();
      }
    
      public void testAsList_toArray_roundTrip() {
        byte[] array = {(byte) 0, (byte) 1, (byte) 2};
        List<Byte> list = Bytes.asList(array);
        byte[] newArray = Bytes.toArray(list);
    
        // Make sure it returned a copy
        list.set(0, (byte) 4);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/BytesTest.java

        list.set(0, (byte) 2);
        assertThat(array).isEqualTo(new byte[] {(byte) 2, (byte) 1});
        array[1] = (byte) 3;
        assertThat(list).containsExactly((byte) 2, (byte) 3).inOrder();
      }
    
      public void testAsList_toArray_roundTrip() {
        byte[] array = {(byte) 0, (byte) 1, (byte) 2};
        List<Byte> list = Bytes.asList(array);
        byte[] newArray = Bytes.toArray(list);
    
        // Make sure it returned a copy
        list.set(0, (byte) 4);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/CharsTest.java

        list.set(0, (char) 2);
        assertThat(array).isEqualTo(new char[] {(char) 2, (char) 1});
        array[1] = (char) 3;
        assertThat(list).containsExactly((char) 2, (char) 3).inOrder();
      }
    
      public void testAsList_toArray_roundTrip() {
        char[] array = {(char) 0, (char) 1, (char) 2};
        List<Character> list = Chars.asList(array);
        char[] newArray = Chars.toArray(list);
    
        // Make sure it returned a copy
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(array).isEqualTo(new double[] {(double) 2, (double) 1});
        array[1] = (double) 3;
        assertThat(list).containsExactly((double) 2, (double) 3).inOrder();
      }
    
      public void testAsList_toArray_roundTrip() {
        double[] array = {(double) 0, (double) 1, (double) 2};
        List<Double> list = Doubles.asList(array);
        double[] newArray = Doubles.toArray(list);
    
        // Make sure it returned a copy
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(array).isEqualTo(new float[] {(float) 2, (float) 1});
        array[1] = (float) 3;
        assertThat(list).containsExactly((float) 2, (float) 3).inOrder();
      }
    
      public void testAsList_toArray_roundTrip() {
        float[] array = {(float) 0, (float) 1, (float) 2};
        List<Float> list = Floats.asList(array);
        float[] newArray = Floats.toArray(list);
    
        // Make sure it returned a copy
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        list.set(0, (int) 2);
        assertThat(array).isEqualTo(new int[] {(int) 2, (int) 1});
        array[1] = (int) 3;
        assertThat(list).containsExactly((int) 2, (int) 3).inOrder();
      }
    
      public void testAsList_toArray_roundTrip() {
        int[] array = {(int) 0, (int) 1, (int) 2};
        List<Integer> list = Ints.asList(array);
        int[] newArray = Ints.toArray(list);
    
        // Make sure it returned a copy
        list.set(0, (int) 4);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(array).isEqualTo(new double[] {(double) 2, (double) 1});
        array[1] = (double) 3;
        assertThat(list).containsExactly((double) 2, (double) 3).inOrder();
      }
    
      public void testAsList_toArray_roundTrip() {
        double[] array = {(double) 0, (double) 1, (double) 2};
        List<Double> list = Doubles.asList(array);
        double[] newArray = Doubles.toArray(list);
    
        // Make sure it returned a copy
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(array).isEqualTo(new float[] {(float) 2, (float) 1});
        array[1] = (float) 3;
        assertThat(list).containsExactly((float) 2, (float) 3).inOrder();
      }
    
      public void testAsList_toArray_roundTrip() {
        float[] array = {(float) 0, (float) 1, (float) 2};
        List<Float> list = Floats.asList(array);
        float[] newArray = Floats.toArray(list);
    
        // Make sure it returned a copy
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/LongsTest.java

        list.set(0, (long) 2);
        assertThat(array).isEqualTo(new long[] {(long) 2, (long) 1});
        array[1] = (long) 3;
        assertThat(list).containsExactly((long) 2, (long) 3).inOrder();
      }
    
      public void testAsList_toArray_roundTrip() {
        long[] array = {(long) 0, (long) 1, (long) 2};
        List<Long> list = Longs.asList(array);
        long[] newArray = Longs.toArray(list);
    
        // Make sure it returned a copy
        list.set(0, (long) 4);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.8K bytes
    - Viewed (0)
Back to top