Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 25 of 25 for getOrderedElements (0.09 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/ListListIteratorTester.java

      }
    
      private void runListIteratorTest(Set<IteratorFeature> features) {
        new ListIteratorTester<E>(
            listListIteratorTesterNumIterations(),
            singleton(e4()),
            features,
            copyToList(getOrderedElements()),
            0) {
          @Override
          protected ListIterator<E> newTargetIterator() {
            resetCollection();
            return getList().listIterator();
          }
    
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/CollectionSpliteratorTester.java

      }
    
      @CollectionFeature.Require(KNOWN_ORDER)
      public void testSpliteratorKnownOrder() {
        SpliteratorTester.of(collection::spliterator).expect(getOrderedElements()).inOrder();
      }
    
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      @CollectionSize.Require(absent = ZERO)
      public void testSpliteratorNullable() {
        initCollectionWithNullElement();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java

      public void testEquals_otherListWithSameElements() {
        assertTrue(
            "A List should equal any other List containing the same elements.",
            getList().equals(new ArrayList<E>(getOrderedElements())));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherListWithDifferentElements() {
        ArrayList<E> other = new ArrayList<>(getSampleElements());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

        List<E> subList = getList().subList(0, 2).subList(1, 2);
        assertEquals(
            "subList(0, 2).subList(1, 2) "
                + "should be a single-element list of the element at index 1",
            singletonList(getOrderedElements().get(1)),
            subList);
      }
    
      @CollectionSize.Require(absent = {ZERO})
      public void testSubList_size() {
        List<E> list = getList();
        int size = getNumElements();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

        List<E> subList = getList().subList(0, 2).subList(1, 2);
        assertEquals(
            "subList(0, 2).subList(1, 2) "
                + "should be a single-element list of the element at index 1",
            singletonList(getOrderedElements().get(1)),
            subList);
      }
    
      @CollectionSize.Require(absent = {ZERO})
      public void testSubList_size() {
        List<E> list = getList();
        int size = getNumElements();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top