Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 140 for SubList (0.1 sec)

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

        assertThat(multimap.get("foo")).containsExactly(1, 2, 3, 4, 5).inOrder();
        List<Integer> sublist = list.subList(0, 5);
        assertThat(sublist).containsExactly(1, 2, 3, 4, 5).inOrder();
    
        sublist.clear();
        assertTrue(sublist.isEmpty());
        multimap.put("foo", 6);
    
        assertThrows(ConcurrentModificationException.class, () -> sublist.isEmpty());
      }
    
      public void testCreateFromMultimap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

        assertThat(multimap.get("foo")).containsExactly(1, 2, 3, 4, 5).inOrder();
        List<Integer> sublist = list.subList(0, 5);
        assertThat(sublist).containsExactly(1, 2, 3, 4, 5).inOrder();
    
        sublist.clear();
        assertTrue(sublist.isEmpty());
        multimap.put("foo", 6);
    
        assertThrows(ConcurrentModificationException.class, () -> sublist.isEmpty());
      }
    
      public void testCreateFromMultimap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/ByteArrayAsListTest.java

                    .named("Bytes.asList, head subList"),
                ListTestSuiteBuilder.using(new BytesAsListTailSubListGenerator())
                    .named("Bytes.asList, tail subList"),
                ListTestSuiteBuilder.using(new BytesAsListMiddleSubListGenerator())
                    .named("Bytes.asList, middle subList"));
    
        TestSuite suite = new TestSuite();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/LongArrayAsListTest.java

                    .named("Longs.asList, head subList"),
                ListTestSuiteBuilder.using(new LongsAsListTailSubListGenerator())
                    .named("Longs.asList, tail subList"),
                ListTestSuiteBuilder.using(new LongsAsListMiddleSubListGenerator())
                    .named("Longs.asList, middle subList"));
    
        TestSuite suite = new TestSuite();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java

              if (keys.get(i) < keys.get(minIndex)) {
                minIndex = i;
              }
            }
            Optional<BinaryNode> leftChild = createTreap(keys.subList(0, minIndex));
            Optional<BinaryNode> rightChild = createTreap(keys.subList(minIndex + 1, keys.size()));
            return Optional.of(new BinaryNode(keys.get(minIndex), leftChild, rightChild));
          }
        };
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 26 19:18:53 UTC 2019
    - 4.9K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

          String[] all = new String[elements.length + suffix.length];
          arraycopy(elements, 0, all, 0, elements.length);
          arraycopy(suffix, 0, all, elements.length, suffix.length);
          return ImmutableList.copyOf(all).subList(0, elements.length);
        }
      }
    
      public static class ImmutableListTailSubListGenerator extends TestStringListGenerator {
        @Override
        protected List<String> create(String[] elements) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/FloatArrayAsListTest.java

                    .named("Floats.asList, head subList"),
                ListTestSuiteBuilder.using(new FloatsAsListTailSubListGenerator())
                    .named("Floats.asList, tail subList"),
                ListTestSuiteBuilder.using(new FloatsAsListMiddleSubListGenerator())
                    .named("Floats.asList, middle subList"));
    
        TestSuite suite = new TestSuite();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/FloatArrayAsListTest.java

                    .named("Floats.asList, head subList"),
                ListTestSuiteBuilder.using(new FloatsAsListTailSubListGenerator())
                    .named("Floats.asList, tail subList"),
                ListTestSuiteBuilder.using(new FloatsAsListMiddleSubListGenerator())
                    .named("Floats.asList, middle subList"));
    
        TestSuite suite = new TestSuite();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/IntArrayAsListTest.java

                    .named("Ints.asList, head subList"),
                ListTestSuiteBuilder.using(new IntsAsListTailSubListGenerator())
                    .named("Ints.asList, tail subList"),
                ListTestSuiteBuilder.using(new IntsAsListMiddleSubListGenerator())
                    .named("Ints.asList, middle subList"));
    
        TestSuite suite = new TestSuite();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ForwardingList.java

      @Override
      @ParametricNullness
      public E set(int index, @ParametricNullness E element) {
        return delegate().set(index, element);
      }
    
      @Override
      public List<E> subList(int fromIndex, int toIndex) {
        return delegate().subList(fromIndex, toIndex);
      }
    
      @Override
      public boolean equals(@CheckForNull Object object) {
        return object == this || delegate().equals(object);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 7.9K bytes
    - Viewed (0)
Back to top