- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for immutableCopy (0.07 seconds)
-
android/guava-tests/test/com/google/common/collect/SetViewTest.java
public void testImmutableCopy_empty() { assertThat(union(emptySet(), emptySet()).immutableCopy()).isEmpty(); assertThat(intersection(newHashSet(1, 2), newHashSet(3, 4)).immutableCopy()).isEmpty(); assertThat(difference(newHashSet(1, 2), newHashSet(1, 2)).immutableCopy()).isEmpty(); assertThat(symmetricDifference(newHashSet(1, 2), newHashSet(1, 2)).immutableCopy()).isEmpty(); } public void testImmutableCopy() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 29.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/QuantilesAlgorithmTest.java
Sets.difference( ImmutableSet.copyOf(QuantilesAlgorithm.values()), ImmutableSet.of(REFERENCE_ALGORITHM)) .immutableCopy(); private double[] dataset; @Override protected void setUp() { dataset = new double[DATASET_SIZE]; for (int i = 0; i < DATASET_SIZE; i++) { dataset[i] = rng.nextDouble(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 3.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/QuantilesAlgorithmTest.java
Sets.difference( ImmutableSet.copyOf(QuantilesAlgorithm.values()), ImmutableSet.of(REFERENCE_ALGORITHM)) .immutableCopy(); private double[] dataset; @Override protected void setUp() { dataset = new double[DATASET_SIZE]; for (int i = 0; i < DATASET_SIZE; i++) { dataset[i] = rng.nextDouble(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 3.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java
: new MutatedOnQueryList<>( transform(infiniteSetsFromStartIndex, ImmutableList::copyOf)); Set<String> immutableCopy; try { immutableCopy = copyOf(input); } catch (RuntimeException e) { throw new RuntimeException( Strings.lenientFormat(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 18.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Sets.java
* stable. There is usually no reason to retain a reference of type {@code SetView}; typically, * you either use it as a plain {@link Set}, or immediately invoke {@link #immutableCopy} or * {@link #copyInto} and forget the {@code SetView} itself. * * @since 2.0 */ public abstract static class SetView<E extends @Nullable Object> extends AbstractSet<E> {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 81.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/Sets.java
* stable. There is usually no reason to retain a reference of type {@code SetView}; typically, * you either use it as a plain {@link Set}, or immediately invoke {@link #immutableCopy} or * {@link #copyInto} and forget the {@code SetView} itself. * * @since 2.0 */ public abstract static class SetView<E extends @Nullable Object> extends AbstractSet<E> {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 83K bytes - Click Count (0)