Package de.xima.fc.user_portal.common
Class Items
- java.lang.Object
-
- de.xima.fc.user_portal.common.Items
-
public final class Items extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String[]
stringListToArray(List<String> list)
static <T> List<T>
sublist(List<T> list, int fromIndex, int toIndex)
Returns a view of the portion of the specified list between the specified fromIndex, inclusive, and toIndex, exclusive.
-
-
-
Method Detail
-
sublist
public static <T> List<T> sublist(List<T> list, int fromIndex, int toIndex)
Returns a view of the portion of the specified list between the specified fromIndex, inclusive, and toIndex, exclusive. Handles out of bound indices in a way that ensures no exceptions are thrown. Any index smaller than 0 is treated as 0, any index larger than the list size is treated as the list's size.- Type Parameters:
T
- The type of the list- Parameters:
list
- The list to return a sublist offromIndex
- The start index (inclusive)toIndex
- The end index (exclusive)- Returns:
- A view of the specified range within the list
-
-