Method subList(int fromIndex, int toIndex)
Return type:
java.util.List
<List<E>>
Member of:
java.util.List
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
col = Arrays.asList(getFullElements()).subList(2, 5);
2
Collection all = Arrays.asList(getFullElements()).subList(2, 5);
3
assertEquals(Arrays.asList(new String[] {"a", "b", "c"}), l.subList(0, 3));
4
List key = bindings.subList( 0, limit );
5
return getAssignments().subList(0, (maxNumber - 1));
6
return out.subList(0, Math.min(count, out.size()));
7
_allRecords.subList(0, trim);
8
List oldRecords = _allRecords.subList(0, trim);
9
newAggregations.addAll(aggregations.subList(0, i));
10
history = history.subList(0, MAX_ITEMS-1);
11
if (nearby.size() >= n) return nearby.subList(0, n);
12
result = compareTuples(a.subList(1, a.size()), b.subList(1, b.size()));
13
visitedURIs = visitedURIs.subList(0, currentURI + 1);
14
{ return list.subList ( fromIndex, toIndex ); }
15
return l.subList(f,t);
16
return new NodeList(nodes.subList(fromIndex, toIndex));
17
return page.subList(fromIndex, toIndex);
18
return getResults().subList(start, end);
19
return a.subList(from, to);
20
row = new ArrayList(arg.subList(start, size));
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.