- ABGR - Static variable in class net.lenni0451.commons.color.ColorConverter
-
The ABGR color format (0xAA_BB_GG_RR).
- addDirectory(String) - Method in class net.lenni0451.commons.io.FileSystemZip
-
Add a directory to the zip file.
- addEntry(String, byte[]) - Method in class net.lenni0451.commons.ByteArrayClassLoader
-
Add an entry to the class loader.
- addEntry(String, byte[]) - Method in class net.lenni0451.commons.io.FileSystemZip
-
Add an entry to the zip file.
- addJar(byte[]) - Method in class net.lenni0451.commons.ByteArrayClassLoader
-
Add a jar to the class loader.
- any(Supplier<T>, O...) - Static method in class net.lenni0451.commons.collections.Lists
-
Create a new list with the given objects.
- any(Supplier<T>, Consumer<T>) - Static method in class net.lenni0451.commons.collections.Lists
-
Create a new list which is passed to the given consumer.
- any(Supplier<T>, Object...) - Static method in class net.lenni0451.commons.collections.Maps
-
Create a new map with the given objects.
- any(Supplier<T>, Consumer<T>) - Static method in class net.lenni0451.commons.collections.Maps
-
Create a new map which is passed to the given consumer.
- any(Supplier<T>, O...) - Static method in class net.lenni0451.commons.collections.Sets
-
Create a new set with the given objects.
- any(Supplier<T>, Consumer<T>) - Static method in class net.lenni0451.commons.collections.Sets
-
Create a new set which is passed to the given consumer.
- ARGB - Static variable in class net.lenni0451.commons.color.ColorConverter
-
The ARGB color format (0xAA_RR_GG_BB).
- arrayList(O...) - Static method in class net.lenni0451.commons.collections.Lists
-
Create a new ArrayList with the given objects.
- arrayList(Consumer<ArrayList<O>>) - Static method in class net.lenni0451.commons.collections.Lists
-
Create a new ArrayList which is passed to the given consumer.
- ceilInt(float) - Static method in class net.lenni0451.commons.math.MathUtils
-
Ceil a float to an int.
- ceilInt(double) - Static method in class net.lenni0451.commons.math.MathUtils
-
Ceil a double to an int.
- ceilLong(float) - Static method in class net.lenni0451.commons.math.MathUtils
-
Ceil a float to a long.
- ceilLong(double) - Static method in class net.lenni0451.commons.math.MathUtils
-
Ceil a double to a long.
- clamp(int, int, int) - Static method in class net.lenni0451.commons.math.MathUtils
-
Clamp an int between a min and max value.
- clamp(long, long, long) - Static method in class net.lenni0451.commons.math.MathUtils
-
Clamp a long between a min and max value.
- clamp(float, float, float) - Static method in class net.lenni0451.commons.math.MathUtils
-
Clamp a float between a min and max value.
- clamp(double, double, double) - Static method in class net.lenni0451.commons.math.MathUtils
-
Clamp a double between a min and max value.
- close() - Method in class net.lenni0451.commons.io.FileSystemZip
-
- ColorConverter - Class in net.lenni0451.commons.color
-
Convert colors between different formats.
- ColorConverter(int, int, int) - Constructor for class net.lenni0451.commons.color.ColorConverter
-
Create a new color converter.
- ColorConverter(int, int, int, int) - Constructor for class net.lenni0451.commons.color.ColorConverter
-
Create a new color converter.
- ColorUtils - Class in net.lenni0451.commons.color
-
- ColorUtils() - Constructor for class net.lenni0451.commons.color.ColorUtils
-
- concurrentHashMap(Object...) - Static method in class net.lenni0451.commons.collections.Maps
-
Create a new ConcurrentHashMap with the given objects.
- concurrentHashMap(Consumer<ConcurrentHashMap<K, V>>) - Static method in class net.lenni0451.commons.collections.Maps
-
Create a new ConcurrentHashMap which is passed to the given consumer.
- convert(int, ColorConverter, ColorConverter) - Static method in class net.lenni0451.commons.color.ColorConverter
-
Convert a color from one format to another.
- copyOnWriteArrayList(O...) - Static method in class net.lenni0451.commons.collections.Lists
-
Create a new CopyOnWriteArrayList with the given objects.
- copyOnWriteArrayList(Consumer<CopyOnWriteArrayList<O>>) - Static method in class net.lenni0451.commons.collections.Lists
-
Create a new CopyOnWriteArrayList which is passed to the given consumer.
- count(String, String) - Static method in class net.lenni0451.commons.StringUtils
-
Count the amount of occurrences of a string in another string.
- create(String...) - Static method in class net.lenni0451.commons.io.FileUtils
-
Create a file from an array of parts.
- create(File, String...) - Static method in class net.lenni0451.commons.io.FileUtils
-
Create a file from a parent file and an array of parts.
- cut(String, int) - Static method in class net.lenni0451.commons.StringUtils
-
Cut the string to the given length.
- cut(String, char, int) - Static method in class net.lenni0451.commons.StringUtils
-
Cut the string to the given length.
- fake(Class<T>) - Static method in class net.lenni0451.commons.Sneaky
-
Fake throw an exception to have to declare it in the method signature.
- FileSystemZip - Class in net.lenni0451.commons.io
-
A fast zip file using the FileSystem API.
- FileSystemZip(File) - Constructor for class net.lenni0451.commons.io.FileSystemZip
-
Construct a new file system zip.
- FileSystemZip.Entry - Class in net.lenni0451.commons.io
-
The entry for a file in the zip file.
- FileUtils - Class in net.lenni0451.commons.io
-
- FileUtils() - Constructor for class net.lenni0451.commons.io.FileUtils
-
- findClass(String) - Method in class net.lenni0451.commons.ByteArrayClassLoader
-
- flip(String) - Static method in class net.lenni0451.commons.StringUtils
-
Flip the given string.
- floorInt(float) - Static method in class net.lenni0451.commons.math.MathUtils
-
Floor a float to an int.
- floorInt(double) - Static method in class net.lenni0451.commons.math.MathUtils
-
Floor a double to an int.
- floorLong(float) - Static method in class net.lenni0451.commons.math.MathUtils
-
Floor a float to a long.
- floorLong(double) - Static method in class net.lenni0451.commons.math.MathUtils
-
Floor a double to a long.
- forcePass() - Method in class net.lenni0451.commons.time.Timer
-
Force the timer to tick.
- forcePass() - Method in class net.lenni0451.commons.time.Timing
-
Force the time to have passed.
- forEach(Consumer<FileSystemZip.Entry>) - Method in class net.lenni0451.commons.io.FileSystemZip
-
Iterate over all entries in the zip file.
- format(String, long) - Static method in class net.lenni0451.commons.time.TimeFormatter
-
Format a time in milliseconds to a string.
- format(String, long, boolean) - Static method in class net.lenni0451.commons.time.TimeFormatter
-
Format a time in milliseconds to a (UTC) string.
- formatBytes(long) - Static method in class net.lenni0451.commons.math.MathUtils
-
Convert a byte count to a human-readable string.
- formatHHMMSS(long) - Static method in class net.lenni0451.commons.time.TimeFormatter
-
Format a time in milliseconds to a string in the format "HH:mm:ss".
- formatMMSS(long) - Static method in class net.lenni0451.commons.time.TimeFormatter
-
Format a time in milliseconds to a string in the format "mm:ss".
- from(int) - Method in class net.lenni0451.commons.color.ColorConverter
-
Convert the int representation of a color to a color.
- from(float[]) - Method in class net.lenni0451.commons.color.ColorConverter
-
Convert the float representation of a color to a color.
- randomBytes(int) - Static method in class net.lenni0451.commons.RandomUtils
-
Generate random bytes with the given length.
- randomDouble(double, double) - Static method in class net.lenni0451.commons.RandomUtils
-
Generate a random double between the given min and max.
- randomElement(T[]) - Static method in class net.lenni0451.commons.RandomUtils
-
Get a random element from the given array.
- randomElement(List<T>) - Static method in class net.lenni0451.commons.RandomUtils
-
Get a random element from the given list.
- randomInt(int, int) - Static method in class net.lenni0451.commons.RandomUtils
-
Generate a random integer between the given min and max.
- randomizeCase(String) - Static method in class net.lenni0451.commons.RandomUtils
-
Randomize the case of the given string.
- randomLong(long, long) - Static method in class net.lenni0451.commons.RandomUtils
-
Generate a random long between the given min and max.
- randomString(int) - Static method in class net.lenni0451.commons.RandomUtils
-
Generate a random string with the given length.
- randomString(int, String) - Static method in class net.lenni0451.commons.RandomUtils
-
Generate a random string with the given length and charset.
- RandomUtils - Class in net.lenni0451.commons
-
- RandomUtils() - Constructor for class net.lenni0451.commons.RandomUtils
-
- read(File, InputStream) - Static method in class net.lenni0451.commons.io.FileUtils
-
Read all bytes from a stream and write them to a file.
- readAll(InputStream) - Static method in class net.lenni0451.commons.io.IOUtils
-
Read all bytes from a stream.
- reconnect() - Method in class net.lenni0451.commons.network.TorProxy
-
Reconnect to the Tor network.
- repeat(char, int) - Static method in class net.lenni0451.commons.StringUtils
-
Repeat the char a given amount of times.
- repeat(String, int) - Static method in class net.lenni0451.commons.StringUtils
-
Repeat the string a given amount of times.
- repeat(Runnable, long) - Method in class net.lenni0451.commons.threading.ThreadScheduler
-
Repeat a task with a fixed delay.
- repeat(Runnable, long, long) - Method in class net.lenni0451.commons.threading.ThreadScheduler
-
Repeat a task with a fixed delay.
- repeat(Runnable, long, TimeUnit) - Method in class net.lenni0451.commons.threading.ThreadScheduler
-
Repeat a task with a fixed delay.
- repeat(Runnable, long, long, TimeUnit) - Method in class net.lenni0451.commons.threading.ThreadScheduler
-
Repeat a task with a fixed delay.
- reset() - Method in class net.lenni0451.commons.time.Timer
-
Reset the time.
- reset() - Method in class net.lenni0451.commons.time.Timing
-
Reset the time.
- RGB - Static variable in class net.lenni0451.commons.color.ColorConverter
-
The RGB color format (0xRR_GG_BB).
- RGBA - Static variable in class net.lenni0451.commons.color.ColorConverter
-
The RGBA color format (0xRR_GG_BB_AA).
- round(float, int) - Static method in class net.lenni0451.commons.math.MathUtils
-
Round a float to a certain precision.
- round(double, int) - Static method in class net.lenni0451.commons.math.MathUtils
-
Round a double to a certain precision.
- run() - Method in interface net.lenni0451.commons.Sneaky.SneakyRunnable
-
- schedule(Runnable, long) - Method in class net.lenni0451.commons.threading.ThreadScheduler
-
Schedule a task to be executed after a delay.
- schedule(Runnable, long, TimeUnit) - Method in class net.lenni0451.commons.threading.ThreadScheduler
-
Schedule a task to be executed after a delay.
- setAlpha(int, int) - Method in class net.lenni0451.commons.color.ColorConverter
-
Set the alpha value of a color.
- setAlpha(Color, int) - Static method in class net.lenni0451.commons.color.ColorUtils
-
Set the alpha value of a color.
- setBlue(int, int) - Method in class net.lenni0451.commons.color.ColorConverter
-
Set the blue value of a color.
- setBlue(Color, int) - Static method in class net.lenni0451.commons.color.ColorUtils
-
Set the blue value of a color.
- setData(byte[]) - Method in class net.lenni0451.commons.io.FileSystemZip.Entry
-
Set the data of the entry.
- setGreen(int, int) - Method in class net.lenni0451.commons.color.ColorConverter
-
Set the green value of a color.
- setGreen(Color, int) - Static method in class net.lenni0451.commons.color.ColorUtils
-
Set the green value of a color.
- setRed(int, int) - Method in class net.lenni0451.commons.color.ColorConverter
-
Set the red value of a color.
- setRed(Color, int) - Static method in class net.lenni0451.commons.color.ColorUtils
-
Set the red value of a color.
- Sets - Class in net.lenni0451.commons.collections
-
- Sets() - Constructor for class net.lenni0451.commons.collections.Sets
-
- sleep(long) - Static method in class net.lenni0451.commons.threading.ThreadUtils
-
Sleeps the current thread for the given amount of time.
- SliceCalculator<T> - Class in net.lenni0451.commons.math
-
Take a list and calculate slices of it.
- SliceCalculator(List<T>, int) - Constructor for class net.lenni0451.commons.math.SliceCalculator
-
- sneak(Throwable) - Static method in class net.lenni0451.commons.Sneaky
-
Throw a throwable without having to declare it in the method signature.
- sneak(Sneaky.SneakyRunnable) - Static method in class net.lenni0451.commons.Sneaky
-
Run a runnable without having to declare the throwable in the method signature.
- sneak(Sneaky.SneakySupplier<O>) - Static method in class net.lenni0451.commons.Sneaky
-
Get a value from a supplier without having to declare the throwable in the method signature.
- Sneaky - Class in net.lenni0451.commons
-
- Sneaky() - Constructor for class net.lenni0451.commons.Sneaky
-
- Sneaky.SneakyRunnable - Interface in net.lenni0451.commons
-
- Sneaky.SneakySupplier<T> - Interface in net.lenni0451.commons
-
- sort(Map<K, V>, Comparator<Map.Entry<K, V>>) - Static method in class net.lenni0451.commons.collections.Maps
-
Sort a map using the given comparator.
- sort(Set<T>, Comparator<T>) - Static method in class net.lenni0451.commons.collections.Sets
-
Sort a set using the given comparator.
- squared(float, float, float, float) - Static method in class net.lenni0451.commons.math.Distance
-
Calculate the squared distance between two points (2D).
- squared(double, double, double, double) - Static method in class net.lenni0451.commons.math.Distance
-
Calculate the squared distance between two points (2D).
- squared(float, float, float, float, float, float) - Static method in class net.lenni0451.commons.math.Distance
-
Calculate the squared distance between two points (3D).
- squared(double, double, double, double, double, double) - Static method in class net.lenni0451.commons.math.Distance
-
Calculate the squared distance between two points (3D).
- start() - Method in class net.lenni0451.commons.network.TorProxy
-
Start the Tor process.
- startTimerHackThread() - Static method in class net.lenni0451.commons.threading.ThreadUtils
-
Start a thread that will sleep forever.
- stop() - Method in class net.lenni0451.commons.network.TorProxy
-
Stop the Tor process.
- StringUtils - Class in net.lenni0451.commons
-
- StringUtils() - Constructor for class net.lenni0451.commons.StringUtils
-
- ThreadFactoryImpl - Class in net.lenni0451.commons.threading
-
A simple thread factory implementation.
- ThreadScheduler - Class in net.lenni0451.commons.threading
-
A thread scheduler that can execute tasks with a delay or repeat them.
- ThreadScheduler(boolean, boolean) - Constructor for class net.lenni0451.commons.threading.ThreadScheduler
-
Create a new task scheduler.
- ThreadUtils - Class in net.lenni0451.commons.threading
-
- ThreadUtils() - Constructor for class net.lenni0451.commons.threading.ThreadUtils
-
- TimeFormatter - Class in net.lenni0451.commons.time
-
- TimeFormatter() - Constructor for class net.lenni0451.commons.time.TimeFormatter
-
- Timer - Class in net.lenni0451.commons.time
-
A simple class to ensure that a fixed amount of time has passed.
- Timer(long) - Constructor for class net.lenni0451.commons.time.Timer
-
- timeUntil() - Method in class net.lenni0451.commons.time.Timer
-
- timeUntil(long) - Method in class net.lenni0451.commons.time.Timing
-
Get the time until a certain amount of time has passed.
- Timing - Class in net.lenni0451.commons.time
-
A simple class to ensure that a given amount of time has passed.
- Timing() - Constructor for class net.lenni0451.commons.time.Timing
-
- to(Color) - Method in class net.lenni0451.commons.color.ColorConverter
-
Convert a color to its int representation.
- to(int, int, int, int) - Method in class net.lenni0451.commons.color.ColorConverter
-
Convert a color to its int representation.
- toFloats(Color) - Method in class net.lenni0451.commons.color.ColorConverter
-
Convert a color to its float representation.
- toFloats(int, int, int) - Method in class net.lenni0451.commons.color.ColorConverter
-
Convert a color to its float representation.
- toFloats(int, int, int, int) - Method in class net.lenni0451.commons.color.ColorConverter
-
Convert a color to its float representation.
- toInt(String) - Static method in class net.lenni0451.commons.network.IPv4
-
Convert an IPv4 address to an int.
- TorProxy - Class in net.lenni0451.commons.network
-
Start and manage a Tor proxy instance.
- TorProxy(File) - Constructor for class net.lenni0451.commons.network.TorProxy
-
Create a new Tor proxy instance.
- TorProxy(File, int) - Constructor for class net.lenni0451.commons.network.TorProxy
-
Create a new Tor proxy instance.
- TorProxy(File, int, int) - Constructor for class net.lenni0451.commons.network.TorProxy
-
Create a new Tor proxy instance.
- toString(int) - Static method in class net.lenni0451.commons.network.IPv4
-
Convert an int to an IPv4 address.