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
T
and serves as a write many read many memory.A specialBloomFilter
that allows you to remove elements.Utility to write to a CSV file.Helper class for resolving hostnames to IP addresses.Utility class for operations onDuration
s.This utility class can be used to monitor the number of pending tasks ofEventLoop
s.Utility class for operations onEventLoopGroup
s.AQueue
that evicts head elements to ensure that the queue will not exceed its capacity when new elements are enqueued.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 writeThis utility class lat you chain upFuture
s.Utility class for future-related operations.HashSetMultimap<K,V> Hash table based implementation of theSetMultimap
interface.Immutable byte array implementation, that do not allow any modifications to the original input.ASortedSet
where elements are ordered using their natural ordering, or by aComparator
provided at set creation time, depending on which constructor is used.Utility class for operations onInetAddress
s.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()
.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 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 serial number arithmetic.SetMultimap<K,V> Utility class for operations onSet
s.ADefaultEventLoop
that is aware of slow task executions.ADefaultEventLoopGroup
that is aware of slow task executions.Utility class for operations onThrowable
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 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 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.