- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 282 for copyFor (0.37 sec)
-
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.2K bytes - Viewed (0) -
android/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 = ImmutableBiMap.copyOf(singletonMap("one", 1)); assertMapEquals(copy, "one", 1);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 21.2K bytes - Viewed (0) -
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 21.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSourceTest.java
assertFalse(writer.closed()); source.copyTo(writer); assertFalse(writer.closed()); } public void testClosesOnErrors_copyingToCharSinkThatThrows() { for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) { TestCharSource okSource = new TestCharSource(STRING); assertThrows(IOException.class, () -> okSource.copyTo(new TestCharSink(option)));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 11.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java
} public void testCopyOf_map_empty() { Map<Class<?>, Object> in = emptyMap(); ClassToInstanceMap<Object> map = ImmutableClassToInstanceMap.copyOf(in); assertTrue(map.isEmpty()); assertSame(map, ImmutableClassToInstanceMap.of()); assertSame(map, ImmutableClassToInstanceMap.copyOf(map)); } public void testOf_zero() { assertTrue(ImmutableClassToInstanceMap.of().isEmpty()); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 7.5K bytes - Viewed (0) -
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: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 29.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/ProtocolHelper.java
if (stream(webProtocols).get(stream -> stream.anyMatch(s -> s.equals(prefix)))) { logger.debug("web protocols contains {}.", protocol); return; } webProtocols = Arrays.copyOf(webProtocols, webProtocols.length + 1); webProtocols[webProtocols.length - 1] = prefix; } /** * Adds a new file protocol to the supported protocols list.
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 9.7K 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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.1K bytes - Viewed (0) -
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java
ImmutableSortedMap.copyOf(Collections.<String, Integer>emptyMap()); assertEquals(Collections.<String, Integer>emptyMap(), copy); assertSame(copy, ImmutableSortedMap.copyOf(copy)); assertSame(Ordering.natural(), copy.comparator()); } public void testCopyOfSingletonMap() { ImmutableSortedMap<String, Integer> copy = ImmutableSortedMap.copyOf(singletonMap("one", 1));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 27.6K bytes - Viewed (0)