public final class JaffreUtil extends Object
Constructor and Description |
---|
JaffreUtil() |
Modifier and Type | Method and Description |
---|---|
static <T extends Closeable> |
close(T p_closee) |
static <T extends Socket> |
close(T p_closee) |
static boolean |
isDeclaredThrowable(Throwable p_e,
Method p_method)
Check if the given
java.lang.Throwable is a declared
throwable of the given method. |
public static <T extends Closeable> T close(T p_closee)
T
- p_closee
- The closeable object to be closed.null
.public static <T extends Socket> T close(T p_closee)
T
- p_closee
- The socket to be closed.null
.public static boolean isDeclaredThrowable(Throwable p_e, Method p_method)
java.lang.Throwable
is a declared
throwable of the given method.p_e
- The trowable.p_method
- The method.true
if p_method
declares to throw
p_e
, or false
otherwise.IllegalArgumentException
- If either of the method parameters is null
.Copyright © 2009-2013 Alexander Veit. All Rights Reserved.