public class

CollectionUtil

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.CollectionUtil

Class Overview

Convenience methods for Java Collection collections, in particular, List lists.

Summary

Public Constructors
CollectionUtil()
Public Methods
static <T> T get(List<T> list, int index, T safeValue)
Get the value of a list, safely returning a providing default value if the list s null or the index out-of-range.
static <T> T get(List<T> list, int index)
Get the value of a list, safely returning null if the list s null or the index out-of-range.
static <T> T getFirst(List<T> list)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CollectionUtil ()

Public Methods

public static T get (List<T> list, int index, T safeValue)

Get the value of a list, safely returning a providing default value if the list s null or the index out-of-range.

public static T get (List<T> list, int index)

Get the value of a list, safely returning null if the list s null or the index out-of-range.

public static T getFirst (List<T> list)