- 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.
- 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.
- 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).
- 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.
- 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
-
- 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.
- 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, int) - Method in class net.lenni0451.commons.color.ColorConverter
-
- 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.