Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 44 for newHashSet (0.12 sec)

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

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Predicates.not;
    import static com.google.common.collect.Sets.newHashSet;
    import static com.google.common.truth.Truth.assertThat;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.base.Predicate;
    import com.google.common.base.Predicates;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/TypeVisitor.java

     *
     * <p>This class is not thread safe.
     *
     * @author Ben Yu
     */
    @ElementTypesAreNonnullByDefault
    abstract class TypeVisitor {
    
      private final Set<Type> visited = Sets.newHashSet();
    
      /**
       * Visits the given types. Null types are ignored. This allows subclasses to call {@code
       * visit(parameterizedType.getOwnerType())} safely without having to check nulls.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Apr 16 21:10:04 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

    import static com.google.common.collect.Multimaps.synchronizedSortedSetMultimap;
    import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.collect.Sets.newHashSet;
    import static com.google.common.collect.testing.Helpers.nefariousMapEntry;
    import static com.google.common.collect.testing.IteratorFeature.MODIFIABLE;
    import static com.google.common.truth.Truth.assertThat;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

    import static org.codelibs.core.collection.CollectionsUtil.newArrayList;
    import static org.codelibs.core.collection.CollectionsUtil.newHashMap;
    import static org.codelibs.core.collection.CollectionsUtil.newHashSet;
    import static org.codelibs.core.lang.GenericsUtil.getActualClass;
    import static org.codelibs.core.lang.GenericsUtil.getGenericParameters;
    import static org.codelibs.core.lang.GenericsUtil.getTypeVariableMap;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  5. .idea/inspectionProfiles/Gradle.xml

          </replaceConfiguration>
          <replaceConfiguration name="Treat some Guava Collection factory methods as Deprecated" uuid="82f9f9ab-9c3b-367f-99ad-40841dc13819" text="com.google.common.collect.Sets.newHashSet()" recursive="false" caseInsensitive="false" type="JAVA" pattern_context="default" reformatAccordingToStyle="true" shortenFQN="true" replacement="new java.util.HashSet&lt;&gt;()">
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Jun 26 21:49:47 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

                return mmHeap.iterator();
              }
    
              @Override
              protected void verify(List<T> elements) {
                assertEquals(newHashSet(elements), newHashSet(mmHeap.iterator()));
                assertIntact(mmHeap);
              }
            };
        tester.test();
      }
    
      public void testIteratorTester() throws Exception {
        Random random = new Random(0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

          return 0;
        }
      }
    
      private static NamedObject named(String name) {
        return new NamedObject(name);
      }
    
      private static class NamedObject {
        private final Set<String> peerNames = Sets.newHashSet();
    
        private final String name;
    
        NamedObject(String name) {
          this.name = Preconditions.checkNotNull(name);
        }
    
        NamedObject addPeers(String... names) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

    import static com.google.common.collect.Iterators.emptyIterator;
    import static com.google.common.collect.Iterators.singletonIterator;
    import static com.google.common.collect.Sets.newHashSet;
    import static com.google.common.truth.Truth.assertThat;
    import static java.util.Arrays.asList;
    import static org.junit.Assert.assertThrows;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.when;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/io/TraversalUtil.java

    import static org.codelibs.core.collection.CollectionsUtil.newArrayList;
    import static org.codelibs.core.collection.CollectionsUtil.newConcurrentHashMap;
    import static org.codelibs.core.collection.CollectionsUtil.newHashSet;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotEmpty;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.io.File;
    import java.net.URL;
    import java.util.Iterator;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

        assertEquals(0L, map.get(key));
        assertFalse(map.containsKey(key));
      }
    
      public void testRemoveZeros() {
        AtomicLongMap<Object> map = AtomicLongMap.create();
        Set<Object> nonZeroKeys = Sets.newHashSet();
        for (int i = 0; i < ITERATIONS; i++) {
          Object key = new Object();
          long value = i % 2;
          map.put(key, value);
          if (value != 0L) {
            nonZeroKeys.add(key);
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top