Class ListUtil
- java.lang.Object
-
- com.yahoo.search.query.textserialize.item.ListUtil
-
public class ListUtil extends Object
- Author:
- Tony Vaagenes
-
-
Constructor Summary
Constructors Constructor Description ListUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Iterable<T>
butFirst(Collection<T> collection)
static <T> List<T>
butFirst(List<T> list)
static <T> T
first(Collection<T> collection)
static boolean
firstInstanceOf(Collection<?> collection, Class c)
static <T> List<T>
rest(List<T> list)
-
-
-
Method Detail
-
first
public static <T> T first(Collection<T> collection)
-
firstInstanceOf
public static boolean firstInstanceOf(Collection<?> collection, Class c)
-
butFirst
public static <T> Iterable<T> butFirst(Collection<T> collection)
-
-