Package org.drasyl.util
package org.drasyl.util
Utility classes used across multiple packages.
-
ClassDescriptionUtility to colorize and style Strings with ANSI escape sequences.Utility class for operations on arrays.This class wraps an object of type
T
and serves as a write many read many memory.Utility class for operations onDuration
s.A future combiner monitors the outcome of a number of discrete futures, then notifies a final, aggregate future when all of the combined futures are finished.Utility class for future-related operations.Immutable byte array implementation, that do not allow any modifications to the original input.Utility class for operations onURL
s.Class that provides utils forInputStream
s.InternPool<T>Represents a pool of unique objects of typeT
.Utility class for logging-related operations.Represents a confidential string (like a password or a secret token) whose content is masked inMaskedString.toString()
.Utility class for number-related operations.Utility class that can be used to detect properties specific to the current runtime environment/operating system, such as os name.Pair<A,B> A tuple of two elements.Utility class for operations onPath
es.Utility class that can be used to detect properties specific to the current runtime environment, such as Java version and the availability of thesun.misc.Unsafe
object.Static convenience methods that help a method or constructor check whether it was invoked correctly (that is, whether its preconditions were met).Utility class for receiving pseudorandom values.Utility class for security-related operations.Utility class for operations onSet
s.ThrowingBiConsumer<T,U, E extends Exception> BiConsumer
that can throw checkedException
s.ThrowingBiFunction<T,U, R, E extends Exception> BiFunction
that can throw checkedException
s.ThrowingConsumer<T,E extends Exception> ThrowingFunction<T,R, E extends Exception> ThrowingRunnable<E extends Exception>ThrowingSupplier<T,E extends Exception> This class implements the token bucket algorithm as a leaky bucket.Triple<A,B, C> A tuple of three elements.Adapted from nettyTypeParameterMatcher
This class is used for obtaining full generics type information by sub-classing.This class represents an unsigned integer in a rang of [0, 2^32 - 1]This class represents an unsigned short in a rang of [0, 2^16 - 1]Utility class for operations onURI
s.Utility class for operations onURL
s.Utility class for operations on websocketURI
s (e.g.Worm<T>This class wraps an object of typeT
and serves as a write once read many (worm) memory.