com.rabbitmq.utility
Class Utility

java.lang.Object
  extended by com.rabbitmq.utility.Utility

public class Utility
extends java.lang.Object

Catch-all holder class for static helper methods.


Constructor Summary
Utility()
           
 
Method Summary
static void emptyStatement()
          Similarly, for situations where an empty statement is required
static
<T extends java.lang.Throwable & SensibleClone<T>>
T
fixStackTrace(T throwable)
           
static java.lang.String makeStackTrace(java.lang.Throwable throwable)
           
static void use(java.lang.Object value)
          Used to indicate that we are not, in fact, using a variable, also to silence compiler warnings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utility

public Utility()
Method Detail

fixStackTrace

public static <T extends java.lang.Throwable & SensibleClone<T>> T fixStackTrace(T throwable)

makeStackTrace

public static java.lang.String makeStackTrace(java.lang.Throwable throwable)

use

public static void use(java.lang.Object value)
Used to indicate that we are not, in fact, using a variable, also to silence compiler warnings.

Parameters:
value - the object we're pretending to use

emptyStatement

public static void emptyStatement()
Similarly, for situations where an empty statement is required