Package org.drasyl.util
Utility classes used across multiple packages.
-
Interface Summary Interface Description Multimap<K,V> A map in which more than one value may be associated with and returned for a given keySetMultimap<K,V> 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.ByteUtil Utility class for operations on bytes.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.ExpiringMap<K,V> AMap
that expires entries based on oldest age (when maximum size has been exceeded), write time, or last access time.ExpiringSet<E> ASet
that expires elements based on oldest age (when maximum size has been exceeded) or writeFutureCombiner 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.HashSetMultimap<K,V> Hash table based implementation of theSetMultimap
interface.ImmutableByteArray Immutable byte array implementation, that do not allow any modifications to the original input.InetAddressUtil Utility class for operations onInetAddress
s.InetSocketAddressUtil Utility class for operations onURL
s.InputStreamHelper Class that provides utils forInputStream
s.InternPool<T> Represents a pool of unique objects of typeT
.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()
.Murmur3 This class contains methods for MurmurHash3 generation.NumberUtil Utility class for number-related operations.OSInfo 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.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.ThrowableUtil Utility class for operations onThrowable
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.UnsignedByte This class represents an unsigned short in a rang of [0, 256).UnsignedInteger This class represents an unsigned integer in a rang of [0, 2^32)UnsignedMediumInteger This class represents an unsigned integer in a rang of [0, 2^24)UnsignedShort This class represents an unsigned short in a rang of [0, 2^16)UriUtil Utility class for operations onURI
s.UrlUtil Utility class for operations onURL
s.Version 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