Package picard.nio
Class GATKUtils
java.lang.Object
picard.nio.GATKUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
nonNull
(T object) Checks that an Objectobject
is not null and returns the same object or throws anIllegalArgumentException
static <T> T
static <T> T
-
Constructor Details
-
GATKUtils
public GATKUtils()
-
-
Method Details
-
nonNull
public static <T> T nonNull(T object) Checks that an Objectobject
is 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
-