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.BloomFilter<E>A bloom filter is a probabilistic data structure that can quickly and efficiently check whether an element is included in a set.Utility class for operations on bytes.This class wraps an object of type
Tand serves as a write many read many memory.A specialBloomFilterthat allows you to remove elements.Helper class for resolving hostnames to IP addresses.Utility class for operations onDurations.Utility class for operations onEventLoopGroups.AQueuethat evicts head elements to ensure that the queue will not exceed its capacity when new elements are enqueued.ExpiringMap<K,V> AMapthat expires entries based on oldest age (when maximum size has been exceeded), write time, or last access time.ExpiringSet<E>ASetthat expires elements based on oldest age (when maximum size has been exceeded) or writeThis utility class lat you chain upFutures.Utility class for future-related operations.HashSetMultimap<K,V> Hash table based implementation of theSetMultimapinterface.Immutable byte array implementation, that do not allow any modifications to the original input.ASortedSetwhere elements are ordered using their natural ordering, or by aComparatorprovided at set creation time, depending on which constructor is used.Utility class for operations onInetAddresss.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().Multimap<K,V> A map in which more than one value may be associated with and returned for a given keyThis class contains methods for MurmurHash3 generation.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 serial number arithmetic.SetMultimap<K,V> Utility class for operations onSets.Utility class for operations onThrowables.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 short in a rang of [0, 256).This class represents an unsigned integer in a rang of [0, 2^32)This class represents an unsigned integer in a rang of [0, 2^24)This class represents an unsigned short in a rang of [0, 2^16)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.