This package contains general and simple utilities that are used throughout the code.
Interface Summary Interface Description ExceptionHandlerInterface for implementation to handle exceptions which occur. ServiceA service is defined as something which is constructed in a stopped state (unless the constructor starts the service automatically).
Class Summary Class Description AbstractServiceAn abstract implementation of the
Iteratorwhich will go over an Object array.
ClockThis is a utility class for low-resolution timing which avoids frequent
System.currentTimeMillis()calls (which perform poorly because they require system calls).
ExceptionUtilsUtilities for doing basic operations with exceptions. MutablePair<L,R>A special type of
Pairwhich allows the stored references to be updated after creation.
Pair<L,R>A simple tuple implementation (every library needs one, right?). SortUtilsA collection of utilities for searching and sorting against collections and other data providers. StatisticsUtilsUtilities for getting some basic statistics out of numerical data collections. StringBufferWriterClass to wrap a
StringBufferto implement the
StringBuilderWriterClass to wrap a
StringBuilderto implement the
StringUtilsSome small utilities and constants around handling strings.
Exception Summary Exception Description ExceptionUtils.TransformedExceptionException which is constructed from
ExceptionUtils.makeRuntime(Throwable)when the exception was not a runtime exception.
ExceptionUtils.TransformedSuppressedStackExceptionException which is constructed from
ExceptionUtils.makeRuntime(Throwable, boolean)when the exception was not a runtime exception, and stack is being suppressed.
RuntimeExceptionwhich does not generate a stack at it's point of creation.