Class ListUtils

  • All Implemented Interfaces:

    
    public class ListUtils
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ListUtils()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static <T> T getOrNull(@NonNull() List<T> list, int index)
      static <T> T getOrDefault(@NonNull() List<T> list, int index, @NonNull() T def)
      static <T, V> V getAndApply(@NonNull() List<T> list, int index, @NonNull() V def, @NonNull() Function<T, V> handler)
      static <T> T getOrNull(Array<T> list, int index)
      static <T> T getOrDefault(Array<T> list, int index, @NonNull() T def)
      static <T, V> V getAndApply(Array<T> list, int index, @NonNull() V def, @NonNull() Function<T, V> handler)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ListUtils

        ListUtils()