Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 199 for ImmutableSet (0.2 sec)

  1. guava-tests/test/com/google/common/graph/TestUtil.java

     * limitations under the License.
     */
    
    package com.google.common.graph;
    
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Iterators;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.Set;
    
    /** Utility methods used in various common.graph tests. */
    final class TestUtil {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/EndpointPairIterator.java

    import static com.google.common.base.Preconditions.checkState;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.collect.AbstractIterator;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Sets;
    import java.util.Iterator;
    import java.util.Set;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 09 17:31:04 UTC 2021
    - 5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/PredicatesTest.java

        assertFalse(isOneOrFive.apply(null));
      }
    
      public void testIn_equality() {
        Collection<Integer> nums = ImmutableSet.of(1, 5);
        Collection<Integer> sameOrder = ImmutableSet.of(1, 5);
        Collection<Integer> differentOrder = ImmutableSet.of(5, 1);
        Collection<Integer> differentNums = ImmutableSet.of(1, 3, 5);
    
        new EqualsTester()
            .addEqualityGroup(
                Predicates.in(nums),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableCollection.java

     * </ul>
     *
     * <h4>Example usage</h4>
     *
     * <pre>{@code
     * class Foo {
     *   private static final ImmutableSet<String> RESERVED_CODES =
     *       ImmutableSet.of("AZ", "CQ", "ZX");
     *
     *   private final ImmutableSet<String> codes;
     *
     *   public Foo(Iterable<String> codes) {
     *     this.codes = ImmutableSet.copyOf(codes);
     *     checkArgument(Collections.disjoint(this.codes, RESERVED_CODES));
     *   }
     * }
     * }</pre>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 12 16:59:15 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/RegularImmutableSet.java

    /**
     * Implementation of {@link ImmutableSet} with two or more elements.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible(serializable = true, emulated = true)
    @SuppressWarnings("serial") // uses writeReplace(), not default serialization
    @ElementTypesAreNonnullByDefault
    final class RegularImmutableSet<E> extends ImmutableSet.CachingAsList<E> {
      private static final Object[] EMPTY_ARRAY = new Object[0];
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

      }
    
      @Test
      public void addEdge_existingEdgeBetweenSameNodes() {
        assume().that(graphIsMutable()).isTrue();
    
        assertThat(networkAsMutableNetwork.addEdge(N1, N2, E12)).isTrue();
        ImmutableSet<String> edges = ImmutableSet.copyOf(network.edges());
        assertThat(networkAsMutableNetwork.addEdge(N1, N2, E12)).isFalse();
        assertThat(network.edges()).containsExactlyElementsIn(edges);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertEquals(newMap, map);
        assertEquals(newMap.entrySet(), map.entrySet());
        assertEquals(newMap.keySet(), map.keySet());
        Set<Object> expectedValues = ImmutableSet.of(one);
        Set<Object> actualValues = ImmutableSet.copyOf(map.values());
        assertEquals(expectedValues, actualValues);
      }
    
      /** Lookups on the map view shouldn't impact the recency queue. */
      public void testAsMapRecency() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertEquals(newMap, map);
        assertEquals(newMap.entrySet(), map.entrySet());
        assertEquals(newMap.keySet(), map.keySet());
        Set<Object> expectedValues = ImmutableSet.of(one);
        Set<Object> actualValues = ImmutableSet.copyOf(map.values());
        assertEquals(expectedValues, actualValues);
      }
    
      /** Lookups on the map view shouldn't impact the recency queue. */
      public void testAsMapRecency() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/eventbus/SubscriberRegistryTest.java

     * limitations under the License.
     */
    
    package com.google.common.eventbus;
    
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Iterators;
    import java.util.Iterator;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link SubscriberRegistry}.
     *
     * @author Colin Decker
     */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ForwardingSetTest.java

                  public Set apply(Set delegate) {
                    return wrap(delegate);
                  }
                });
      }
    
      public void testEquals() {
        Set<String> set1 = ImmutableSet.of("one");
        Set<String> set2 = ImmutableSet.of("two");
        new EqualsTester()
            .addEqualityGroup(set1, wrap(set1), wrap(set1))
            .addEqualityGroup(set2, wrap(set2))
            .testEquals();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 5K bytes
    - Viewed (0)
Back to top