Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 6,864 for copyOf (0.17 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        ImmutableBiMap<String, Integer> copy =
            ImmutableBiMap.copyOf(Collections.<String, Integer>emptyMap());
        assertEquals(Collections.<String, Integer>emptyMap(), copy);
        assertSame(copy, ImmutableBiMap.copyOf(copy));
        assertSame(ImmutableBiMap.of(), copy);
      }
    
      public void testCopyOfSingletonMap() {
        ImmutableBiMap<String, Integer> copy =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  2. 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 {
      @AndroidIncompatible // similar to ImmutableTableTest.testNullPointerInstance
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 16:03:42 GMT 2023
    - 9.6K 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 {
      @AndroidIncompatible // similar to ImmutableTableTest.testNullPointerInstance
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 31 16:03:42 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  4. 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();
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        assertEquals(Collections.<String>emptySet(), copyOf(c));
        assertSame(c, copyOf(c));
      }
    
      public void testCopyOf_shortcut_singleton() {
        Collection<String> c = of("a");
        assertEquals(Collections.singleton("a"), copyOf(c));
        assertSame(c, copyOf(c));
      }
    
      public void testCopyOf_shortcut_sameType() {
        Collection<String> c = of("a", "b", "c");
        assertSame(c, copyOf(c));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        assertEquals(Collections.<String>emptySet(), copyOf(c));
        assertSame(c, copyOf(c));
      }
    
      public void testCopyOf_shortcut_singleton() {
        Collection<String> c = of("a");
        assertEquals(Collections.singleton("a"), copyOf(c));
        assertSame(c, copyOf(c));
      }
    
      public void testCopyOf_shortcut_sameType() {
        Collection<String> c = of("a", "b", "c");
        assertSame(c, copyOf(c));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

          return ImmutableSortedSet.copyOf(elements);
        }
      }
    
      public static class ImmutableSortedSetHeadsetGenerator extends TestStringSortedSetGenerator {
        @Override
        protected SortedSet<String> create(String[] elements) {
          List<String> list = Lists.newArrayList(elements);
          list.add("zzz");
          return ImmutableSortedSet.copyOf(list).headSet("zzy");
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        IntegerDiv10 twenty = new IntegerDiv10(20);
    
        List<IntegerDiv10> original = ImmutableList.of(three, eleven, twelve, twenty);
    
        Multiset<IntegerDiv10> copy = ImmutableSortedMultiset.copyOf(original);
        assertTrue(copy.contains(eleven));
        assertTrue(copy.contains(twelve));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

      protected <E extends Comparable<? super E>> SortedSet<E> copyOf(E[] elements) {
        return ImmutableSortedSet.copyOf(elements);
      }
    
      @Override
      protected <E extends Comparable<? super E>> SortedSet<E> copyOf(
          Collection<? extends E> elements) {
        return ImmutableSortedSet.copyOf(elements);
      }
    
      @Override
      protected <E extends Comparable<? super E>> SortedSet<E> copyOf(Iterable<? extends E> elements) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 45.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        IntegerDiv10 twenty = new IntegerDiv10(20);
    
        List<IntegerDiv10> original = ImmutableList.of(three, eleven, twelve, twenty);
    
        Multiset<IntegerDiv10> copy = ImmutableSortedMultiset.copyOf(original);
        assertTrue(copy.contains(eleven));
        assertTrue(copy.contains(twelve));
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 19.4K bytes
    - Viewed (0)
Back to top