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
Tand serves as a write many read many memory.Utility class for operations onDurations.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 onURLs.Class that provides utils forInputStreams.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 onPathes.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.Unsafeobject.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 onSets.ThrowingBiConsumer<T,U, E extends Exception> BiConsumerthat can throw checkedExceptions.ThrowingBiFunction<T,U, R, E extends Exception> BiFunctionthat can throw checkedExceptions.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 nettyTypeParameterMatcherThis 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 onURIs.Utility class for operations onURLs.Utility class for operations on websocketURIs (e.g.Worm<T>This class wraps an object of typeTand serves as a write once read many (worm) memory.