Package picard.nio
Class GATKUtils
java.lang.Object
picard.nio.GATKUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TnonNull(T object) Checks that an Objectobjectis not null and returns the same object or throws anIllegalArgumentExceptionstatic <T> Tstatic <T> T
-
Constructor Details
-
GATKUtils
public GATKUtils()
-
-
Method Details
-
nonNull
public static <T> T nonNull(T object) Checks that an Objectobjectis not null and returns the same object or throws anIllegalArgumentException- Parameters:
object- any Object- Returns:
- the same object
- Throws:
IllegalArgumentException- if ao == null
-
nonNull
- Parameters:
object- any Objectmessage- the text message that would be passed to the exception thrown wheno == null.- Returns:
- the same object
- Throws:
IllegalArgumentException- if ao == null
-
nonNull
- Parameters:
object- any Objectmessage- the text message that would be passed to the exception thrown wheno == null.- Returns:
- the same object
- Throws:
IllegalArgumentException- if ao == null
-