Class Items

java.lang.Object
de.xima.fc.user_portal.common.Items

public final class Items extends Object
  • Method Details

    • stringListToArray

      public static String[] stringListToArray(List<String> list)
    • 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 of
      fromIndex - The start index (inclusive)
      toIndex - The end index (exclusive)
      Returns:
      A view of the specified range within the list