Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 84 for newArrayList (0.09 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java

            NullPointerException.class, () -> multimap().putAll(k3(), Lists.newArrayList(v3(), null)));
    
        Collection<V> values = multimap().get(k3());
        if (values.size() == 0) {
          expectUnchanged();
          // Be extra thorough in case internal state was corrupted by the expected null.
          assertEquals(Lists.newArrayList(), Lists.newArrayList(values));
          assertEquals(size, multimap().size());
        } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java

      public void testEquals() {
        resetContainer(mapEntry(k0(), v0()), mapEntry(k1(), v0()), mapEntry(k0(), v3()));
        Map<K, Collection<V>> expected = Maps.newHashMap();
        expected.put(k0(), Lists.newArrayList(v0(), v3()));
        expected.put(k1(), Lists.newArrayList(v0()));
        new EqualsTester().addEqualityGroup(expected, multimap().asMap()).testEquals();
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testEntrySetEquals() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/annotations/GwtCompatible.java

     *
     * <pre>
     * {@literal @}GwtCompatible
     * class Lists {
     *   ...
     *   {@literal @}GwtCompatible(serializable = true)
     *   {@literal static <E> List<E>} newArrayList(E... elements) {
     *     ...
     *   }
     * }
     * </pre>
     *
     * <p>The return value of {@code Lists.newArrayList(E[])} has GWT serializable type. It is also
     * useful in specifying contracts of interface methods. In the following example,
     *
     * <pre>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Dec 16 19:54:45 UTC 2020
    - 2.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

      public void testPeekingIteratorBehavesLikeIteratorOnThreeElementIterable() {
        actsLikeIteratorHelper(Lists.newArrayList("A", "B", "C"));
      }
    
      @GwtIncompatible // works but takes 5 minutes to run
      public void testPeekingIteratorAcceptsNullElements() {
        actsLikeIteratorHelper(Lists.<@Nullable String>newArrayList(null, "A", null));
      }
    
      public void testPeekOnEmptyList() {
        List<?> list = emptyList();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/eventbus/outside/AnnotatedNotAbstractInSuperclassTest.java

        final List<Object> overriddenNotAnnotatedInSubclassEvents = Lists.newArrayList();
        final List<Object> overriddenAndAnnotatedInSubclassEvents = Lists.newArrayList();
        final List<Object> differentlyOverriddenNotAnnotatedInSubclassBadEvents = Lists.newArrayList();
        final List<Object> differentlyOverriddenAnnotatedInSubclassBadEvents = Lists.newArrayList();
    
        @Subscribe
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 08 21:35:40 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/eventbus/outside/DeepInterfaceTest.java

        final List<Object> annotatedIn1Events = Lists.newArrayList();
        final List<Object> annotatedIn1And2Events = Lists.newArrayList();
        final List<Object> annotatedIn1And2AndClassEvents = Lists.newArrayList();
        final List<Object> declaredIn1AnnotatedIn2Events = Lists.newArrayList();
        final List<Object> declaredIn1AnnotatedInClassEvents = Lists.newArrayList();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 08 21:35:40 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/collect/testing/SafeTreeSetTest.java

        SerializableTester.reserializeAndAssert(map.entrySet());
        SerializableTester.reserializeAndAssert(map.keySet());
        assertEquals(
            Lists.newArrayList(map.values()),
            Lists.newArrayList(SerializableTester.reserialize(map.values())));
      }
    
      @GwtIncompatible // SerializableTester
      public void testEmpty_serialization() {
        SortedSet<String> set = new SafeTreeSet<>();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/eventbus/outside/NeitherAbstractNorAnnotatedInSuperclassTest.java

      static class SuperClass {
        final List<Object> neitherOverriddenNorAnnotatedEvents = Lists.newArrayList();
        final List<Object> overriddenInSubclassNowhereAnnotatedEvents = Lists.newArrayList();
        final List<Object> overriddenAndAnnotatedInSubclassEvents = Lists.newArrayList();
    
        public void neitherOverriddenNorAnnotated(Object o) {
          neitherOverriddenNorAnnotatedEvents.add(o);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 08 21:35:40 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

      public void testPeekingIteratorBehavesLikeIteratorOnThreeElementIterable() {
        actsLikeIteratorHelper(Lists.newArrayList("A", "B", "C"));
      }
    
      @GwtIncompatible // works but takes 5 minutes to run
      public void testPeekingIteratorAcceptsNullElements() {
        actsLikeIteratorHelper(Lists.<@Nullable String>newArrayList(null, "A", null));
      }
    
      public void testPeekOnEmptyList() {
        List<?> list = emptyList();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/collection/IndexedIteratorTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.collection;
    
    import static org.codelibs.core.collection.CollectionsUtil.newArrayList;
    import static org.codelibs.core.collection.IndexedIterator.indexed;
    import static org.codelibs.core.io.LineIterator.iterable;
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.not;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top