Module org.tquadrat.foundation.base
Package org.tquadrat.foundation.lang
Some general language extensions provided by the Foundation Library.
Unless otherwise stated, null argument values will cause
methods and constructors of all classes in this package to throw an
Exception,
usually a
NullArgumentException,
but in some rare cases, it could be also a
NullPointerException.
-
ClassDescriptionA variant of the interface
Runnablewith aAction.run()method that allows to throw an exception.A wrapper for locks that supports thetry-with-resourcesfeature of Java 7.This exception is thrown when an operation fails.This class provides a bunch of commonly used constants.A functional interface whoseConstraint.evaluate()method return abooleanand can throw anExceptionin case of an errorSome functions for DEBUG and TEST output to the console.ErrorHandler<C>This is aFunctionalInterfacemeant to process a given error code and to throw an exception based on that, or to cause some side effects.This implementation ofStringConverterallows to create an instance ofStringConverterfor an arbitrary type on the fly.Lazy<T>A holder for a lazy initialised object instance.Allows to execute an operation with an obtained lock.An implementation of a name-value-pair.This class consists of several utility methods working onObjectinstances, similar to those onArraysorCollections.Operation<R>A variant of the interfaceSupplierwith aOperation.get()method that allows to throw an exception.Pair<L,R> The implementation of a tupel.Prints a formatted message.SoftLazy<T>Instances of the classSoftLazyallow to lazy load data that may be needed more than once, but not permanently.Status<V,C> Instances of this record are meant to be used as the return values for methods that should either return a proper result, or an error code.Defines the conversion between Strings and object instances, where the concrete behaviour is defined by the implementation of the interface.Stringer<T>This interface defines a method to compose a String representation from arbitrary objects.A builder for an implementation ofThreadFactory.An implementation ofThreadGroupthat allows to configure the behaviour ofThreadGroupExt.uncaughtException(Thread, Throwable)
