Home
last modified time | relevance | path

Searched refs:subList (Results 1 – 25 of 247) sorted by relevance

12345678910

/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DListSubListTester.java54 getList().subList(-1, 0); in testSubList_startNegative()
62 getList().subList(0, getNumElements() + 1); in testSubList_endTooLarge()
70 getList().subList(1, 0); in testSubList_startGreaterThanEnd()
84 assertEquals("subList(0, 0) should be empty", emptyList(), getList().subList(0, 0)); in testSubList_empty()
91 getList().subList(0, getNumElements())); in testSubList_entireList()
97 List<E> subList = getList().subList(0, 1); in testSubList_subListRemoveAffectsOriginal() local
98 subList.remove(0); in testSubList_subListRemoveAffectsOriginal()
99 List<E> expected = Arrays.asList(createSamplesArray()).subList(1, getNumElements()); in testSubList_subListRemoveAffectsOriginal()
106 List<E> subList = getList().subList(0, 1); in testSubList_subListClearAffectsOriginal() local
107 subList.clear(); in testSubList_subListClearAffectsOriginal()
[all …]
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/testers/
DListSubListTester.java54 getList().subList(-1, 0); in testSubList_startNegative()
62 getList().subList(0, getNumElements() + 1); in testSubList_endTooLarge()
70 getList().subList(1, 0); in testSubList_startGreaterThanEnd()
84 assertEquals("subList(0, 0) should be empty", emptyList(), getList().subList(0, 0)); in testSubList_empty()
91 getList().subList(0, getNumElements())); in testSubList_entireList()
97 List<E> subList = getList().subList(0, 1); in testSubList_subListRemoveAffectsOriginal() local
98 subList.remove(0); in testSubList_subListRemoveAffectsOriginal()
99 List<E> expected = Arrays.asList(createSamplesArray()).subList(1, getNumElements()); in testSubList_subListRemoveAffectsOriginal()
106 List<E> subList = getList().subList(0, 1); in testSubList_subListClearAffectsOriginal() local
107 subList.clear(); in testSubList_subListClearAffectsOriginal()
[all …]
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithDelegateTest.java42 public ArrayList<T> subList(int fromIndex, int toIndex) { in subList() method in StubbingWithDelegateTest.FakeList
52 public Collection<T> subList(int fromIndex, int toIndex) { in subList() method in StubbingWithDelegateTest.FakeListWithWrongMethods
121 List<String> subList = mock.subList(0, 0); in method_with_subtype_return_can_be_called() local
122 assertThat(subList.isEmpty()).isTrue(); in method_with_subtype_return_can_be_called()
154 mock.subList(0, 0); in calling_method_with_wrong_reference_return_should_throw_exception()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/
DXmlPrinter.java55 … NodeList<? extends Node> subList = (NodeList<? extends Node>) subListMetaModel.getValue(node); in output() local
56 if (subList != null && !subList.isEmpty()) { in output()
60 for (Node subListNode : subList) { in output()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionMethodDeclarationTest.java41 …ResolvedMethodDeclaration subList = list.getAllMethods().stream().filter(m -> m.getName().equals("… in testParameterNameOnClassesFromTheStdLibrary() local
45 assertEquals("arg0", subList.getParam(0).getName()); in testParameterNameOnClassesFromTheStdLibrary()
46 assertEquals("arg1", subList.getParam(1).getName()); in testParameterNameOnClassesFromTheStdLibrary()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DJavadocParser.java62 … descriptionText = trimRight(String.join(EOL, cleanLines.subList(0, indexOfFirstBlockTag))); in parse()
66 String tagBlock = cleanLines.subList(indexOfFirstBlockTag, cleanLines.size()) in parse()
129 cleanedLines = cleanedLines.subList(1, cleanedLines.size()); in cleanLines()
132 cleanedLines = cleanedLines.subList(0, cleanedLines.size() - 1); in cleanLines()
/external/turbine/java/com/google/turbine/parse/
DVariableInitializerParser.java207 .addAll(tokens.subList(start, idx - 1)) in parseInitializers()
214 .addAll(tokens.subList(start, tokens.size())) in parseInitializers()
294 this.tokens = tokens.subList(0, lastType); in dropBracks()
295 this.commas = commas.subList(0, lastComma); in dropBracks()
/external/guava/android/guava-tests/test/com/google/common/primitives/
DCharArrayAsListTest.java92 return asList(all).subList(0, elements.length); in create()
101 return asList(all).subList(2, elements.length + 2); in create()
111 return asList(all).subList(2, elements.length + 2); in create()
DIntArrayAsListTest.java93 return asList(all).subList(0, elements.length); in create()
102 return asList(all).subList(2, elements.length + 2); in create()
112 return asList(all).subList(2, elements.length + 2); in create()
DShortArrayAsListTest.java92 return asList(all).subList(0, elements.length); in create()
101 return asList(all).subList(2, elements.length + 2); in create()
111 return asList(all).subList(2, elements.length + 2); in create()
DByteArrayAsListTest.java92 return asList(all).subList(0, elements.length); in create()
101 return asList(all).subList(2, elements.length + 2); in create()
111 return asList(all).subList(2, elements.length + 2); in create()
DDoubleArrayAsListTest.java92 return asList(all).subList(0, elements.length); in create()
101 return asList(all).subList(2, elements.length + 2); in create()
111 return asList(all).subList(2, elements.length + 2); in create()
DFloatArrayAsListTest.java92 return asList(all).subList(0, elements.length); in create()
101 return asList(all).subList(2, elements.length + 2); in create()
111 return asList(all).subList(2, elements.length + 2); in create()
DLongArrayAsListTest.java92 return asList(all).subList(0, elements.length); in create()
101 return asList(all).subList(2, elements.length + 2); in create()
111 return asList(all).subList(2, elements.length + 2); in create()
/external/guava/guava-tests/test/com/google/common/primitives/
DLongArrayAsListTest.java92 return asList(all).subList(0, elements.length); in create()
101 return asList(all).subList(2, elements.length + 2); in create()
111 return asList(all).subList(2, elements.length + 2); in create()
DShortArrayAsListTest.java92 return asList(all).subList(0, elements.length); in create()
101 return asList(all).subList(2, elements.length + 2); in create()
111 return asList(all).subList(2, elements.length + 2); in create()
DFloatArrayAsListTest.java92 return asList(all).subList(0, elements.length); in create()
101 return asList(all).subList(2, elements.length + 2); in create()
111 return asList(all).subList(2, elements.length + 2); in create()
DDoubleArrayAsListTest.java92 return asList(all).subList(0, elements.length); in create()
101 return asList(all).subList(2, elements.length + 2); in create()
111 return asList(all).subList(2, elements.length + 2); in create()
DByteArrayAsListTest.java92 return asList(all).subList(0, elements.length); in create()
101 return asList(all).subList(2, elements.length + 2); in create()
111 return asList(all).subList(2, elements.length + 2); in create()
DIntArrayAsListTest.java93 return asList(all).subList(0, elements.length); in create()
102 return asList(all).subList(2, elements.length + 2); in create()
112 return asList(all).subList(2, elements.length + 2); in create()
DCharArrayAsListTest.java92 return asList(all).subList(0, elements.length); in create()
101 return asList(all).subList(2, elements.length + 2); in create()
111 return asList(all).subList(2, elements.length + 2); in create()
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/
DListGenerators.java85 return ImmutableList.copyOf(all).subList(0, elements.length); in create()
96 return ImmutableList.copyOf(all).subList(2, elements.length + 2); in create()
111 return ImmutableList.copyOf(all).subList(2, elements.length + 2); in create()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DListGenerators.java85 return ImmutableList.copyOf(all).subList(0, elements.length); in create()
96 return ImmutableList.copyOf(all).subList(2, elements.length + 2); in create()
111 return ImmutableList.copyOf(all).subList(2, elements.length + 2); in create()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
DListExtensions.cs206 public static IList subList( this IList list, int fromIndex, int toIndex ) in subList() method in Antlr.Runtime.JavaExtensions.ListExtensions
217 public static IList<T> subList<T>( this IList<T> list, int fromIndex, int toIndex ) in subList() method in Antlr.Runtime.JavaExtensions.ListExtensions
227 public static IList<T> subList<T>( this List<T> list, int fromIndex, int toIndex ) in subList() method in Antlr.Runtime.JavaExtensions.ListExtensions
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DForwardingImmutableList.java46 public ImmutableList<E> subList(int fromIndex, int toIndex) { in subList() method in ForwardingImmutableList
47 return unsafeDelegateList(delegateList().subList(fromIndex, toIndex)); in subList()

12345678910