Package org.drasyl.util
Utility classes used across multiple packages.
-
Interface Summary Interface Description 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> -
Class Summary Class Description Ansi Utility to colorize and style Strings with ANSI escape sequences.ArrayUtil Utility class for operations on arrays.ByteBufUtil Utility class for operations onByteBuf
s.ConcurrentReference<T> This class wraps an object of typeT
and serves as a write many read many memory.DurationUtil Utility class for operations onDuration
s.EventLoopGroupUtil https://github.com/netty/netty/issues/639#issuecomment-9263566FutureCombiner 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.FutureUtil Utility class for future-related operations.InetSocketAddressUtil Utility class for operations onURL
s.InternPool<T> Represents a pool of unique objects of typeT
.JSONUtil Holder for the JSON serializer and JSON deserializer.LoggingUtil Utility class for logging-related operations.MaskedString Represents a confidential string (like a password or a secret token) whose content is masked inMaskedString.toString()
.NettyUtil Utility class for netty-related operationsNumberUtil Utility class for number-related operations.ObservableUtil Utility class for operations onObservable
s.Pair<A,B> A tuple of two elements.PathUtil Utility class for operations onPath
es.PlatformDependent 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.Preconditions Static convenience methods that help a method or constructor check whether it was invoked correctly (that is, whether its preconditions were met).RandomUtil Utility class for receiving pseudorandom values.ReferenceCountUtil SecretUtil Utility class for security-related operations.SetUtil Utility class for operations onSet
s.TokenBucket This class implements the token bucket algorithm as a leaky bucket.Triple<A,B,C> A tuple of three elements.TypeParameterMatcher Adapted from nettyTypeParameterMatcher
TypeReference<T> This class is used for obtaining full generics type information by sub-classing.UnsignedInteger This class represents an unsigned integer in a rang of [0, 2^32 - 1]UnsignedShort This class represents an unsigned short in a rang of [0, 2^16 - 1]UriUtil Utility class for operations onURI
s.UrlUtil Utility class for operations onURL
s.WebSocketUtil 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. -
Enum Summary Enum Description Ansi.Color