Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 4,035 for list (0.17 sec)

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

      }
    
      public void testConcatVarargs() {
        List<Integer> list1 = newArrayList(1);
        List<Integer> list2 = newArrayList(4);
        List<Integer> list3 = newArrayList(7, 8);
        List<Integer> list4 = newArrayList(9);
        List<Integer> list5 = newArrayList(10);
        Iterable<Integer> result = Iterables.concat(list1, list2, list3, list4, list5);
        assertEquals(asList(1, 4, 7, 8, 9, 10), newArrayList(result));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/IterablesTest.java

      }
    
      public void testConcatVarargs() {
        List<Integer> list1 = newArrayList(1);
        List<Integer> list2 = newArrayList(4);
        List<Integer> list3 = newArrayList(7, 8);
        List<Integer> list4 = newArrayList(9);
        List<Integer> list5 = newArrayList(10);
        Iterable<Integer> result = Iterables.concat(list1, list2, list3, list4, list5);
        assertEquals(asList(1, 4, 7, 8, 9, 10), newArrayList(result));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46K bytes
    - Viewed (0)
  3. .idea/runConfigurations/Test__Partial_Linkage_Native___cache_dist.xml

          <option name="taskDescriptions">
            <list />
          </option>
          <option name="taskNames">
            <list>
              <option value=":native:native.tests:partialLinkageTest" />
            </list>
          </option>
          <option name="vmOptions" />
        </ExternalSystemSettings>
        <ExternalSystemDebugServerProcess>false</ExternalSystemDebugServerProcess>
    XML
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Wed Mar 29 15:41:06 GMT 2023
    - 1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

      }
    
      public void testLast_list() {
        List<String> list = Lists.newArrayList("a", "b", "c");
        assertThat(FluentIterable.from(list).last()).hasValue("c");
      }
    
      public void testLast_null() {
        List<String> list = Lists.newArrayList("a", "b", null);
        try {
          FluentIterable.from(list).last();
          fail();
        } catch (NullPointerException expected) {
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 17:32:08 GMT 2023
    - 30.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/SortedListsTest.java

            if (list.contains(key)) {
              assertEquals(list.lastIndexOf(key), answer);
              return;
            }
            break;
          case ANY_PRESENT:
            if (list.contains(key)) {
              assertEquals(key, list.get(answer));
              return;
            }
            break;
          case FIRST_AFTER:
            if (list.contains(key)) {
              assertEquals(list.lastIndexOf(key) + 1, answer);
              return;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/FluentIterableTest.java

      }
    
      public void testLast_list() {
        List<String> list = Lists.newArrayList("a", "b", "c");
        assertThat(FluentIterable.from(list).last()).hasValue("c");
      }
    
      public void testLast_null() {
        List<String> list = Lists.newArrayList("a", "b", null);
        try {
          FluentIterable.from(list).last();
          fail();
        } catch (NullPointerException expected) {
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 31.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ForwardingListTest.java

            .testForwarding(
                List.class,
                new Function<List, List>() {
                  @Override
                  public List apply(List delegate) {
                    return wrap(delegate);
                  }
                });
      }
    
      public void testEquals() {
        List<String> list1 = ImmutableList.of("one");
        List<String> list2 = ImmutableList.of("two");
        new EqualsTester()
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

        List<Integer> list = emptyList();
        Iterator<Integer> iterator = peekingIterator(new ThrowsAtEndIterator<Integer>(list));
        assertNextThrows(iterator);
    
        /* Checks the case where a later element throws an exception. */
    
        list = Lists.newArrayList(1, 2);
        iterator = peekingIterator(new ThrowsAtEndIterator<Integer>(list));
        assertTrue(iterator.hasNext());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/OrderingTest.java

        List<@Nullable Integer> list8 = Lists.newArrayList(nullInt, nullInt);
        List<@Nullable List<@Nullable Integer>> list =
            Lists.newArrayList(list1, list2, list3, list4, list5, list6, list7, list8, null);
        List<@Nullable List<@Nullable Integer>> sorted = example.sortedCopy(list);
    
        // [[null, null], [null], [1, null, 2], [1, 1], [1, 2], [1], [2], [], null]
        assertThat(sorted)
            .containsExactly(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        List<@Nullable Integer> list8 = Lists.newArrayList(nullInt, nullInt);
        List<@Nullable List<@Nullable Integer>> list =
            Lists.newArrayList(list1, list2, list3, list4, list5, list6, list7, list8, null);
        List<@Nullable List<@Nullable Integer>> sorted = example.sortedCopy(list);
    
        // [[null, null], [null], [1, null, 2], [1, 1], [1, 2], [1], [2], [], null]
        assertThat(sorted)
            .containsExactly(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
Back to top