- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,518 for copyOf (0.12 sec)
-
android/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"); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 15.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
String[] array = new String[0]; Multiset<String> multiset = ImmutableMultiset.copyOf(array); assertTrue(multiset.isEmpty()); } public void testCreation_arrayOfOneElement() { String[] array = new String[] {"a"}; Multiset<String> multiset = ImmutableMultiset.copyOf(array); assertEquals(HashMultiset.create(asList("a")), multiset); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 20.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListTest.java
assertEquals(asList("a", "b", "a"), list); List<String> mutableList = asList("a", "b"); list = ImmutableList.copyOf(mutableList); mutableList.set(0, "c"); assertEquals(asList("a", "b"), list); } public void testCopyOf_collectionContainingNull() { Collection<@Nullable String> c = MinimalCollection.of("a", null, "b");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 24.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java
@Override protected <E extends Comparable<? super E>> Set<E> copyOf(E[] elements) { return ImmutableSet.copyOf(elements); } @Override protected <E extends Comparable<? super E>> Set<E> copyOf(Collection<? extends E> elements) { return ImmutableSet.copyOf(elements); } @Override protected <E extends Comparable<? super E>> Set<E> copyOf(Iterable<? extends E> elements) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 13.7K bytes - Viewed (0) -
android/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) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderRequest.java
this.profiles = profiles != null ? List.copyOf(profiles) : List.of(); this.activeProfileIds = activeProfileIds != null ? List.copyOf(activeProfileIds) : List.of(); this.inactiveProfileIds = inactiveProfileIds != null ? List.copyOf(inactiveProfileIds) : List.of(); this.systemProperties = systemProperties != null ? Map.copyOf(systemProperties) : session.getSystemProperties();
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Wed Oct 09 11:07:31 UTC 2024 - 13.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java
ImmutableListMultimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input); new EqualsTester().addEqualityGroup(input, multimap).testEquals(); } public void testCopyOfEmpty() { ArrayListMultimap<String, Integer> input = ArrayListMultimap.create(); ImmutableListMultimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input); new EqualsTester().addEqualityGroup(input, multimap).testEquals(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 23.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
String[] array = new String[0]; Multiset<String> multiset = ImmutableMultiset.copyOf(array); assertTrue(multiset.isEmpty()); } public void testCreation_arrayOfOneElement() { String[] array = new String[] {"a"}; Multiset<String> multiset = ImmutableMultiset.copyOf(array); assertEquals(HashMultiset.create(asList("a")), multiset); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 24.9K bytes - Viewed (0) -
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) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 46.7K bytes - Viewed (0) -
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(singleton("a"), copyOf(c)); assertSame(c, copyOf(c)); } public void testCopyOf_shortcut_sameType() { Collection<String> c = of("a", "b", "c"); assertSame(c, copyOf(c)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 18.5K bytes - Viewed (0)