Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- ACCEPTING_FILTER - Static variable in class eu.cloudnetservice.utils.base.io.FileUtil
B
- boxPrimitive(CodeBuilder, CodeGenerationUtil.PrimitiveWrapperConverter) - Static method in class eu.cloudnetservice.utils.base.CodeGenerationUtil
-
Applies the conversion from a primitive type to the corresponding wrapper type on the given code builder.
- boxPrimitive(CodeBuilder, String) - Static method in class eu.cloudnetservice.utils.base.CodeGenerationUtil
-
Boxes the given primitive type on the stack of the given code builder (excluding void).
- build() - Method in class eu.cloudnetservice.utils.base.column.ColumnFormatter.Builder
-
Constructs a new column formatter instance from the values supplied to this builder.
- build() - Method in class eu.cloudnetservice.utils.base.column.RowedFormatter.Builder
-
Builds a new row based formatter from this builder.
- builder() - Static method in class eu.cloudnetservice.utils.base.column.ColumnFormatter
-
Constructs a new builder for a colum formatter.
- builder() - Static method in record class eu.cloudnetservice.utils.base.column.RowedFormatter
-
Constructs a new builder for a rowed formatter.
- Builder() - Constructor for class eu.cloudnetservice.utils.base.column.ColumnFormatter.Builder
- Builder() - Constructor for class eu.cloudnetservice.utils.base.column.RowedFormatter.Builder
C
- C_BOOL - Static variable in class eu.cloudnetservice.utils.base.CodeGenerationUtil
- C_BYTE - Static variable in class eu.cloudnetservice.utils.base.CodeGenerationUtil
- C_CHAR - Static variable in class eu.cloudnetservice.utils.base.CodeGenerationUtil
- C_DOUBLE - Static variable in class eu.cloudnetservice.utils.base.CodeGenerationUtil
- C_FLOAT - Static variable in class eu.cloudnetservice.utils.base.CodeGenerationUtil
- C_INT - Static variable in class eu.cloudnetservice.utils.base.CodeGenerationUtil
- C_LONG - Static variable in class eu.cloudnetservice.utils.base.CodeGenerationUtil
- C_SHORT - Static variable in class eu.cloudnetservice.utils.base.CodeGenerationUtil
- callable - Variable in class eu.cloudnetservice.utils.base.concurrent.ListenableTask
- ClassAllocationUtil - Class in eu.cloudnetservice.utils.base
-
A collection of utilities to instantiate data classes.
- ClassAllocationUtil() - Constructor for class eu.cloudnetservice.utils.base.ClassAllocationUtil
- close() - Method in class eu.cloudnetservice.utils.base.io.ListenableOutputStream
-
Calls the given close listener and then closes the wrapped output stream, rethrowing any exception that was thrown by either of these two actions.
- closeListener - Variable in class eu.cloudnetservice.utils.base.io.ListenableOutputStream
- CodeGenerationUtil - Class in eu.cloudnetservice.utils.base
-
Various utils to generate code using the java classfile api.
- CodeGenerationUtil() - Constructor for class eu.cloudnetservice.utils.base.CodeGenerationUtil
- CodeGenerationUtil.PrimitiveWrapperConverter - Record Class in eu.cloudnetservice.utils.base
-
Holds all information required to generate code to box or unbox a primitive type.
- column(Function) - Method in class eu.cloudnetservice.utils.base.column.RowedFormatter.Builder
-
Sets the extractor function for the next column.
- ColumnEntry - Record Class in eu.cloudnetservice.utils.base.column
-
Represents a column in a table view.
- ColumnEntry(int, String[]) - Constructor for record class eu.cloudnetservice.utils.base.column.ColumnEntry
-
Creates an instance of a
ColumnEntryrecord class. - ColumnFormatter - Class in eu.cloudnetservice.utils.base.column
-
A formatter that is highly customizable to build tables from columns.
- ColumnFormatter(String, String, char, char, char, String[]) - Constructor for class eu.cloudnetservice.utils.base.column.ColumnFormatter
-
Constructs a new column formatter instance.
- ColumnFormatter.Builder - Class in eu.cloudnetservice.utils.base.column
-
A builder for a column formatter.
- columnLeftBracket - Variable in class eu.cloudnetservice.utils.base.column.ColumnFormatter.Builder
- columnLeftBracket - Variable in class eu.cloudnetservice.utils.base.column.ColumnFormatter
- columnLeftBracket(char) - Method in class eu.cloudnetservice.utils.base.column.ColumnFormatter.Builder
-
Sets the left bracket to apply to the column.
- columnMinLength - Variable in record class eu.cloudnetservice.utils.base.column.ColumnEntry
-
The field for the
columnMinLengthrecord component. - columnMinLength() - Method in record class eu.cloudnetservice.utils.base.column.ColumnEntry
-
Returns the value of the
columnMinLengthrecord component. - columnRightBracket - Variable in class eu.cloudnetservice.utils.base.column.ColumnFormatter.Builder
- columnRightBracket - Variable in class eu.cloudnetservice.utils.base.column.ColumnFormatter
- columnRightBracket(char) - Method in class eu.cloudnetservice.utils.base.column.ColumnFormatter.Builder
-
Sets the right bracket to apply to the column.
- columns - Variable in class eu.cloudnetservice.utils.base.column.RowedFormatter.Builder
- columns - Variable in record class eu.cloudnetservice.utils.base.column.RowedFormatter
-
The field for the
columnsrecord component. - columns() - Method in record class eu.cloudnetservice.utils.base.column.RowedFormatter
-
Returns the value of the
columnsrecord component. - columns(List) - Method in class eu.cloudnetservice.utils.base.column.RowedFormatter.Builder
-
Sets the extractor functions for all columns.
- columnTitles - Variable in class eu.cloudnetservice.utils.base.column.ColumnFormatter.Builder
- columnTitles - Variable in class eu.cloudnetservice.utils.base.column.ColumnFormatter
- columnTitles(String...) - Method in class eu.cloudnetservice.utils.base.column.ColumnFormatter.Builder
-
Sets the column titles to use for the table.
- columnTitles(List) - Method in class eu.cloudnetservice.utils.base.column.ColumnFormatter.Builder
-
Sets the column titles to use for the table.
- convertBytesToMb(long) - Static method in class eu.cloudnetservice.utils.base.resource.ResourceFormatter
-
Converts the given byte count to a megabyte value.
- convertToColumns(Collection) - Method in record class eu.cloudnetservice.utils.base.column.RowedFormatter
-
Converts the given input data into columns to prepare them to be converted into a table.
- convertToColumns(T...) - Method in record class eu.cloudnetservice.utils.base.column.RowedFormatter
-
Converts the given input data into columns to prepare them to be converted into a table.
- convertToPercentage(double) - Static method in class eu.cloudnetservice.utils.base.resource.ResourceFormatter
-
Converts the given double value into a percentage.
- copy(InputStream, OutputStream) - Static method in class eu.cloudnetservice.utils.base.io.FileUtil
-
Copies the input stream to the output stream.
- copy(InputStream, Path) - Static method in class eu.cloudnetservice.utils.base.io.FileUtil
-
Copies the input stream to given target path.
- copy(Path, Path) - Static method in class eu.cloudnetservice.utils.base.io.FileUtil
-
Copies the source file to the given destination.
- copyDirectory(Path, Path) - Static method in class eu.cloudnetservice.utils.base.io.FileUtil
-
Copies the target directory to the given destination and creates all needed parent directories.
- copyDirectory(Path, Path, DirectoryStream.Filter) - Static method in class eu.cloudnetservice.utils.base.io.FileUtil
-
Copies the target directory to the given destination and creates all needed parent directories.
- count - Variable in class eu.cloudnetservice.utils.base.concurrent.CountingTask
- count() - Method in class eu.cloudnetservice.utils.base.concurrent.CountingTask
-
Gets the current count of this task.
- countDown() - Method in class eu.cloudnetservice.utils.base.concurrent.CountingTask
-
Decrements the count of this task by one and publishes the count change.
- CountingTask<V> - Class in eu.cloudnetservice.utils.base.concurrent
-
The counting task is a task that starts at a specified count and is capable of counting both up and down.
- CountingTask(V, int) - Constructor for class eu.cloudnetservice.utils.base.concurrent.CountingTask
-
Constructs a new counting task with a starting count and a value to complete after counting to 0.
- countTo(int) - Method in class eu.cloudnetservice.utils.base.concurrent.CountingTask
-
Sets the count of this counting task to the given one and publishes the count change.
- countUp() - Method in class eu.cloudnetservice.utils.base.concurrent.CountingTask
-
Increments the count of this task by one and publishes the count change.
- CpuUsageResolver - Class in eu.cloudnetservice.utils.base.resource
-
A utility class to resolve the usage of the host system CPU.
- CpuUsageResolver() - Constructor for class eu.cloudnetservice.utils.base.resource.CpuUsageResolver
- createDirectory(Path) - Static method in class eu.cloudnetservice.utils.base.io.FileUtil
-
Creates all needed parent directories and the given directory only if the given path does not exist already.
- createTempFile() - Static method in class eu.cloudnetservice.utils.base.io.FileUtil
-
Resolves a random path in the temp directory of the cloud and creates all needed parents directories for a temporary file including the
FileUtil.TEMP_DIR.
D
- DECIMAL_FORMAT_2DIGIT_PRECISION - Static variable in class eu.cloudnetservice.utils.base.resource.ResourceFormatter
- DEFAULT_ALPHABET_UPPERCASE - Static variable in class eu.cloudnetservice.utils.base.StringUtil
- DEFAULT_AUTO_FLUSH - Static variable in class eu.cloudnetservice.utils.base.io.LogOutputStream
- DEFAULT_CHARSET - Static variable in class eu.cloudnetservice.utils.base.io.LogOutputStream
- defaultFormatter - Variable in class eu.cloudnetservice.utils.base.column.RowedFormatter.Builder
- defaultFormatter - Variable in record class eu.cloudnetservice.utils.base.column.RowedFormatter
-
The field for the
defaultFormatterrecord component. - defaultFormatter() - Method in record class eu.cloudnetservice.utils.base.column.RowedFormatter
-
Returns the value of the
defaultFormatterrecord component. - defaultFormatter(ColumnFormatter) - Method in class eu.cloudnetservice.utils.base.column.RowedFormatter.Builder
-
Sets the default formatter for the columns.
- defineClass(Class, byte[]) - Static method in class eu.cloudnetservice.utils.base.CodeGenerationUtil
-
Defines a class based on the given class bytes using the class loader of the given parent class.
- defineNestedClass(Class, byte[]) - Static method in class eu.cloudnetservice.utils.base.CodeGenerationUtil
-
Defines a hidden nest mate class in the given host class, which grants the defined class full access to everything that is present in the class (for example private members).
- delete(Path) - Static method in class eu.cloudnetservice.utils.base.io.FileUtil
-
Deletes the file or directory at the given path.
E
- endsWithIgnoreCase(String, String) - Static method in class eu.cloudnetservice.utils.base.StringUtil
-
Checks if the given string ends with the given suffix ignoring the string casing.
- ensureChild(Path, Path) - Static method in class eu.cloudnetservice.utils.base.io.FileUtil
-
Ensures that the given child path is a child path of the given root path and throwing an exception otherwise.
- ensureSafeZipEntryName(String) - Static method in class eu.cloudnetservice.utils.base.io.ZipUtil
-
Ensures that the given name does not contain any characters that might lead to path traversal or other malicious behavior.
- ENTRY_FORMAT - Static variable in class eu.cloudnetservice.utils.base.column.ColumnFormatter
- equals(Object) - Method in record class eu.cloudnetservice.utils.base.CodeGenerationUtil.PrimitiveWrapperConverter
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class eu.cloudnetservice.utils.base.column.ColumnEntry
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class eu.cloudnetservice.utils.base.column.RowedFormatter
-
Indicates whether some other object is "equal to" this one.
- eu.cloudnetservice.utils.base - package eu.cloudnetservice.utils.base
- eu.cloudnetservice.utils.base.column - package eu.cloudnetservice.utils.base.column
- eu.cloudnetservice.utils.base.concurrent - package eu.cloudnetservice.utils.base.concurrent
- eu.cloudnetservice.utils.base.io - package eu.cloudnetservice.utils.base.io
- eu.cloudnetservice.utils.base.resource - package eu.cloudnetservice.utils.base.resource
- extract(InputStream, Path) - Static method in class eu.cloudnetservice.utils.base.io.ZipUtil
-
Extracts all entries from the given input stream to the given target directory while catching all occurring exceptions and redirecting them into the debug log.
- extract(Path, Path) - Static method in class eu.cloudnetservice.utils.base.io.ZipUtil
-
Extracts all entries from the zip file at the given zip path to the given target directory while catching all occurring exceptions and redirecting them into the debug log.
- extractEntry(ZipInputStream, ZipEntry, Path) - Static method in class eu.cloudnetservice.utils.base.io.ZipUtil
-
Extracts the zip entry from the given zip input stream and copies it to the given destination.
- extractZipStream(ZipInputStream, Path) - Static method in class eu.cloudnetservice.utils.base.io.ZipUtil
-
Extracts all entries from the zip stream to the given target directory while catching all occurring exceptions and redirecting them into the debug log.
F
- FileUtil - Class in eu.cloudnetservice.utils.base.io
-
This file utility class wraps convenient non-blocking-io methods that use checked exceptions into methods that catch those exceptions and redirect them into the error log.
- FileUtil() - Constructor for class eu.cloudnetservice.utils.base.io.FileUtil
- finishedFuture(Object) - Static method in class eu.cloudnetservice.utils.base.concurrent.TaskUtil
-
Creates a new task that already has a defined result.
- flush() - Method in class eu.cloudnetservice.utils.base.io.ListenableOutputStream
- flush() - Method in class eu.cloudnetservice.utils.base.io.LogOutputStream
- flushLock - Variable in class eu.cloudnetservice.utils.base.io.LogOutputStream
- forInfo(Logger) - Static method in class eu.cloudnetservice.utils.base.io.LogOutputStream
-
Creates a new log output stream instance logging all messages to the given logger with the info log level.
- format(Collection) - Method in record class eu.cloudnetservice.utils.base.column.RowedFormatter
-
Converts the given input data into a formatted table using the default formatter given to this formatter.
- format(T...) - Method in record class eu.cloudnetservice.utils.base.column.RowedFormatter
-
Converts the given input data into a formatted table using the default formatter given to this formatter.
- formatLines(ColumnEntry...) - Method in class eu.cloudnetservice.utils.base.column.ColumnFormatter
-
Formats the given column entries into a table based on the formatter configuration.
- formattedColumnTitles - Variable in class eu.cloudnetservice.utils.base.column.ColumnFormatter
- formattedEntries - Variable in record class eu.cloudnetservice.utils.base.column.ColumnEntry
-
The field for the
formattedEntriesrecord component. - formattedEntries() - Method in record class eu.cloudnetservice.utils.base.column.ColumnEntry
-
Returns the value of the
formattedEntriesrecord component. - formatTwoDigitPrecision(double) - Static method in class eu.cloudnetservice.utils.base.resource.ResourceFormatter
-
Formats the given double value with a two digit precision after the decimal point.
- forWarn(Logger) - Static method in class eu.cloudnetservice.utils.base.io.LogOutputStream
-
Creates a new log output stream instance logging all messages to the given logger with the severe log level.
- fromWrapperDesc - Variable in record class eu.cloudnetservice.utils.base.CodeGenerationUtil.PrimitiveWrapperConverter
-
The field for the
fromWrapperDescrecord component. - fromWrapperDesc() - Method in record class eu.cloudnetservice.utils.base.CodeGenerationUtil.PrimitiveWrapperConverter
-
Returns the value of the
fromWrapperDescrecord component. - fromWrapperMethod - Variable in record class eu.cloudnetservice.utils.base.CodeGenerationUtil.PrimitiveWrapperConverter
-
The field for the
fromWrapperMethodrecord component. - fromWrapperMethod() - Method in record class eu.cloudnetservice.utils.base.CodeGenerationUtil.PrimitiveWrapperConverter
-
Returns the value of the
fromWrapperMethodrecord component.
G
- generateRandomString(int) - Static method in class eu.cloudnetservice.utils.base.StringUtil
-
Generates a random string consisting of uppercase characters and digits with the provided length.
- getInaccessibleFieldValue(Field) - Static method in class eu.cloudnetservice.utils.base.ClassAllocationUtil
-
Gets the value of a static field in a class, resetting the field access permissions after obtaining it.
- getOrDefault(Future, Duration, V) - Static method in class eu.cloudnetservice.utils.base.concurrent.TaskUtil
-
This blocks the calling thread until the result of the future is available.
- getOrDefault(Future, V) - Static method in class eu.cloudnetservice.utils.base.concurrent.TaskUtil
-
This blocks the calling thread until the result of the task is available.
H
- hashCode() - Method in record class eu.cloudnetservice.utils.base.CodeGenerationUtil.PrimitiveWrapperConverter
-
Returns a hash code value for this object.
- hashCode() - Method in record class eu.cloudnetservice.utils.base.column.ColumnEntry
-
Returns a hash code value for this object.
- hashCode() - Method in record class eu.cloudnetservice.utils.base.column.RowedFormatter
-
Returns a hash code value for this object.
- headerValuesSpacerChar - Variable in class eu.cloudnetservice.utils.base.column.ColumnFormatter.Builder
- headerValuesSpacerChar - Variable in class eu.cloudnetservice.utils.base.column.ColumnFormatter
- headerValuesSpacerChar(char) - Method in class eu.cloudnetservice.utils.base.column.ColumnFormatter.Builder
-
Sets the spacer character to apply between the header of a table and the table values.
I
- IS_WINDOWS - Static variable in class eu.cloudnetservice.utils.base.io.ZipUtil
J
- JAR_FILE_SYSTEM_PROVIDER - Static variable in class eu.cloudnetservice.utils.base.io.FileUtil
L
- leftSpacer - Variable in class eu.cloudnetservice.utils.base.column.ColumnFormatter.Builder
- leftSpacer - Variable in class eu.cloudnetservice.utils.base.column.ColumnFormatter
- leftSpacer(String) - Method in class eu.cloudnetservice.utils.base.column.ColumnFormatter.Builder
-
Sets the left spacer to apply to the column.
- level - Variable in class eu.cloudnetservice.utils.base.io.LogOutputStream
- ListenableOutputStream<O> - Class in eu.cloudnetservice.utils.base.io
-
An output stream implementation that holds a listener to call when the stream gets closed.
- ListenableOutputStream(O, CheckedConsumer) - Constructor for class eu.cloudnetservice.utils.base.io.ListenableOutputStream
-
Constructs a new listenable output stream using the given stream as the target and the given close listener to call when the stream gets closed.
- ListenableTask<V> - Class in eu.cloudnetservice.utils.base.concurrent
-
The listenable task is a task that is allowed to be executed over and over again.
- ListenableTask(Callable) - Constructor for class eu.cloudnetservice.utils.base.concurrent.ListenableTask
-
Constructs a new listenable task with the given callable
- logger - Variable in class eu.cloudnetservice.utils.base.io.LogOutputStream
- LOGGER - Static variable in class eu.cloudnetservice.utils.base.io.FileUtil
- LOGGER - Static variable in class eu.cloudnetservice.utils.base.io.ZipUtil
- LogOutputStream - Class in eu.cloudnetservice.utils.base.io
-
A special implementation of an output stream specifically made to log all the written content to it to a provided logger instance.
- LogOutputStream(Level, Logger) - Constructor for class eu.cloudnetservice.utils.base.io.LogOutputStream
-
Creates a new log output stream instance.
- LOOKUP_ALLOCATOR - Static variable in class eu.cloudnetservice.utils.base.ClassAllocationUtil
M
- makeInstanceFactory(Class) - Static method in class eu.cloudnetservice.utils.base.ClassAllocationUtil
-
Constructs an instance for the given target class.
- makeLookupAlloc(MethodHandles.Lookup) - Static method in class eu.cloudnetservice.utils.base.ClassAllocationUtil
-
Makes an allocator for a no-args constructor based on the given lookup.
- makeUnsafeAlloc(Object) - Static method in class eu.cloudnetservice.utils.base.ClassAllocationUtil
-
Makes an allocator that uses sun.misc.Unsafe.allocateInstance to obtain a class instance.
- mapZipFile(Path, CheckedFunction1, T) - Static method in class eu.cloudnetservice.utils.base.io.FileUtil
-
Opens the given zip into a
FileSystemand passes it into the given function. - move(Path, Path, CopyOption...) - Static method in class eu.cloudnetservice.utils.base.io.FileUtil
-
Moves the file at the source path to the given destination path.
N
- NEST_MATE_DEFINE_OPTIONS - Static variable in class eu.cloudnetservice.utils.base.CodeGenerationUtil
- newInstance(Logger, Level) - Static method in class eu.cloudnetservice.utils.base.io.LogOutputStream
-
Creates a new log output stream instance logging all messages to the given logger using the given log level.
- NO_ARGS_CONSTRUCTOR_TYPE - Static variable in class eu.cloudnetservice.utils.base.ClassAllocationUtil
O
- ONE_MB_IN_BYTES - Static variable in class eu.cloudnetservice.utils.base.resource.ResourceFormatter
- openCodeSourceRoot(Class, CheckedConsumer) - Static method in class eu.cloudnetservice.utils.base.resource.ResourceResolver
-
Finds the code source of the caller and passes it to the given consumer.
- openZipFile(Path, CheckedConsumer) - Static method in class eu.cloudnetservice.utils.base.io.FileUtil
-
Opens the given zip into a
FileSystemand passes it into the given consumer. - OS_BEAN - Static variable in class eu.cloudnetservice.utils.base.resource.CpuUsageResolver
P
- primitiveType - Variable in record class eu.cloudnetservice.utils.base.CodeGenerationUtil.PrimitiveWrapperConverter
-
The field for the
primitiveTyperecord component. - primitiveType() - Method in record class eu.cloudnetservice.utils.base.CodeGenerationUtil.PrimitiveWrapperConverter
-
Returns the value of the
primitiveTyperecord component. - PrimitiveWrapperConverter(ClassDesc, ClassDesc) - Constructor for record class eu.cloudnetservice.utils.base.CodeGenerationUtil.PrimitiveWrapperConverter
-
Constructs a new converter instance for the given wrapper and primitive type.
- PrimitiveWrapperConverter(ClassDesc, ClassDesc, String, String, MethodTypeDesc, MethodTypeDesc) - Constructor for record class eu.cloudnetservice.utils.base.CodeGenerationUtil.PrimitiveWrapperConverter
-
Creates an instance of a
PrimitiveWrapperConverterrecord class. - processCpuLoad() - Static method in class eu.cloudnetservice.utils.base.resource.CpuUsageResolver
-
Reads the process cpu usage for the current jvm process and converts the returned value into a percentage.
- publishCountChange() - Method in class eu.cloudnetservice.utils.base.concurrent.CountingTask
-
Checks if the count of this task is 0 or less if that is the case this task is completed with its result value.
R
- repeat(char, int) - Static method in class eu.cloudnetservice.utils.base.StringUtil
-
Repeats the given character the given amount times and returns a string consisting of the reputation result.
- resolve(Path, String...) - Static method in class eu.cloudnetservice.utils.base.io.FileUtil
-
Resolves the given array for the base path and returns the final path after all children are resolved one after another.
- resolveCodeSourceOfClass(Class) - Static method in class eu.cloudnetservice.utils.base.resource.ResourceResolver
-
Resolves the parent location of the given class on the file system or on the class path.
- resolveError(Class, String) - Static method in class eu.cloudnetservice.utils.base.resource.ResourceResolver
-
Constructs a new, unified illegal state exception that can be thrown to indicate that there was some error resolving the URI of a class.
- ResourceFormatter - Class in eu.cloudnetservice.utils.base.resource
-
A small utility class to convert resource values between different formats.
- ResourceFormatter() - Constructor for class eu.cloudnetservice.utils.base.resource.ResourceFormatter
- ResourceResolver - Class in eu.cloudnetservice.utils.base.resource
-
A utility class to resolve the location of class resource on the class path or file system.
- ResourceResolver() - Constructor for class eu.cloudnetservice.utils.base.resource.ResourceResolver
- resultValue - Variable in class eu.cloudnetservice.utils.base.concurrent.CountingTask
- rightSpacer - Variable in class eu.cloudnetservice.utils.base.column.ColumnFormatter.Builder
- rightSpacer - Variable in class eu.cloudnetservice.utils.base.column.ColumnFormatter
- rightSpacer(String) - Method in class eu.cloudnetservice.utils.base.column.ColumnFormatter.Builder
-
Sets the right spacer to apply to the column.
- RowedFormatter<T> - Record Class in eu.cloudnetservice.utils.base.column
-
A formatter for rows based on columns.
- RowedFormatter(ColumnFormatter, List) - Constructor for record class eu.cloudnetservice.utils.base.column.RowedFormatter
-
Creates an instance of a
RowedFormatterrecord class. - RowedFormatter.Builder<T> - Class in eu.cloudnetservice.utils.base.column
-
A builder that can be used to construct a new row based formatter.
- run(boolean) - Method in class eu.cloudnetservice.utils.base.concurrent.ListenableTask
-
Runs the callable provided to this listenable task.
- runAsync(CheckedRunnable) - Static method in class eu.cloudnetservice.utils.base.concurrent.TaskUtil
-
Runs the given runnable in a fork thread pool and wraps it into a completable future.
- runVirtualAsync(CheckedRunnable) - Static method in class eu.cloudnetservice.utils.base.concurrent.TaskUtil
-
Runs the given runnable in a virtual thread pool and wraps it into a completable future.
S
- SECURE_RANDOM - Static variable in class eu.cloudnetservice.utils.base.StringUtil
- startsWithIgnoreCase(String, String) - Static method in class eu.cloudnetservice.utils.base.StringUtil
-
Checks if the given string starts with the given prefix ignoring the string casing.
- state - Variable in class eu.cloudnetservice.utils.base.concurrent.ListenableTask
- STATE_DONE - Static variable in class eu.cloudnetservice.utils.base.concurrent.ListenableTask
- STATE_NEW - Static variable in class eu.cloudnetservice.utils.base.concurrent.ListenableTask
- STATE_RUN - Static variable in class eu.cloudnetservice.utils.base.concurrent.ListenableTask
- StringUtil - Class in eu.cloudnetservice.utils.base
-
Utility class for working with strings.
- StringUtil() - Constructor for class eu.cloudnetservice.utils.base.StringUtil
- SUPPLIER_FACTORY_SIGNATURE - Static variable in class eu.cloudnetservice.utils.base.ClassAllocationUtil
- SUPPLIER_GET_SIGNATURE - Static variable in class eu.cloudnetservice.utils.base.ClassAllocationUtil
- supplyAsync(CheckedFunction0) - Static method in class eu.cloudnetservice.utils.base.concurrent.TaskUtil
-
Supplies the given supplier into the fork thread pool.
- supplyVirtualAsync(CheckedFunction0) - Static method in class eu.cloudnetservice.utils.base.concurrent.TaskUtil
-
Supplies the given supplier into a virtual thread pool.
- systemCpuLoad() - Static method in class eu.cloudnetservice.utils.base.resource.CpuUsageResolver
-
Reads the current system cpu usage and converts the returned value into a percentage.
T
- TaskUtil - Class in eu.cloudnetservice.utils.base.concurrent
-
A
Futureutil, which provides utility methods to supply runnables and functions into a task. - TaskUtil() - Constructor for class eu.cloudnetservice.utils.base.concurrent.TaskUtil
- TEMP_DIR - Static variable in class eu.cloudnetservice.utils.base.io.FileUtil
- toLower(String) - Static method in class eu.cloudnetservice.utils.base.StringUtil
-
Converts all the characters in the given string to lower case using a locale insensitive operation.
- toPrintStream() - Method in class eu.cloudnetservice.utils.base.io.LogOutputStream
-
Wraps this log output stream into a print stream which automatically flushes and uses the UTF-8 charset encoding.
- toPrintStream(boolean, Charset) - Method in class eu.cloudnetservice.utils.base.io.LogOutputStream
-
Wraps this log output stream in a print stream using the given auto flush and charset settings.
- toString() - Method in record class eu.cloudnetservice.utils.base.CodeGenerationUtil.PrimitiveWrapperConverter
-
Returns a string representation of this record class.
- toString() - Method in record class eu.cloudnetservice.utils.base.column.ColumnEntry
-
Returns a string representation of this record class.
- toString() - Method in record class eu.cloudnetservice.utils.base.column.RowedFormatter
-
Returns a string representation of this record class.
- toUpper(String) - Static method in class eu.cloudnetservice.utils.base.StringUtil
-
Converts all the characters in the given string to upper case using a locale insensitive operation.This method returns null in case the given string is null.
- toWrapperDesc - Variable in record class eu.cloudnetservice.utils.base.CodeGenerationUtil.PrimitiveWrapperConverter
-
The field for the
toWrapperDescrecord component. - toWrapperDesc() - Method in record class eu.cloudnetservice.utils.base.CodeGenerationUtil.PrimitiveWrapperConverter
-
Returns the value of the
toWrapperDescrecord component. - toWrapperMethod - Variable in record class eu.cloudnetservice.utils.base.CodeGenerationUtil.PrimitiveWrapperConverter
-
The field for the
toWrapperMethodrecord component. - toWrapperMethod() - Method in record class eu.cloudnetservice.utils.base.CodeGenerationUtil.PrimitiveWrapperConverter
-
Returns the value of the
toWrapperMethodrecord component. - TRUSTED_LOOKUP - Static variable in class eu.cloudnetservice.utils.base.CodeGenerationUtil
U
- unboxPrimitive(CodeBuilder, CodeGenerationUtil.PrimitiveWrapperConverter) - Static method in class eu.cloudnetservice.utils.base.CodeGenerationUtil
-
Applies the primitive to wrapper conversion by first casting to the wrapper type and then invoking the method to convert the wrapper to the primitive representation.
- unboxPrimitive(CodeBuilder, String) - Static method in class eu.cloudnetservice.utils.base.CodeGenerationUtil
-
Unboxes the current object on the stack of the given code builder into the given primitive type (excluding void).
- UNSAFE_ALLOCATOR - Static variable in class eu.cloudnetservice.utils.base.ClassAllocationUtil
V
- VIRTUAL_THREAD_EXECUTOR - Static variable in class eu.cloudnetservice.utils.base.concurrent.TaskUtil
W
- walkFileTree(Path, BiConsumer) - Static method in class eu.cloudnetservice.utils.base.io.FileUtil
-
Walks the file tree, while visiting directories too, starting at the given path and passes the root directory together with the next file or directory into the bi consumer.
- walkFileTree(Path, BiConsumer, boolean) - Static method in class eu.cloudnetservice.utils.base.io.FileUtil
-
Walks the file tree, but only visits directories if specified, starting at the given path and passes the root directory together with the next file or directory into the bi consumer.
- walkFileTree(Path, BiConsumer, boolean, String) - Static method in class eu.cloudnetservice.utils.base.io.FileUtil
-
Walks the file tree while filtering for the given glob and only visiting directories if specified.
- walkFileTree(Path, BiConsumer, boolean, DirectoryStream.Filter) - Static method in class eu.cloudnetservice.utils.base.io.FileUtil
-
Walks the file tree while filtering with the given filter and only visiting directories if specified.
- wrap(String...) - Static method in record class eu.cloudnetservice.utils.base.column.ColumnEntry
-
Wraps the given entries into a column entry.
- wrapped - Variable in class eu.cloudnetservice.utils.base.io.ListenableOutputStream
- wrapperType - Variable in record class eu.cloudnetservice.utils.base.CodeGenerationUtil.PrimitiveWrapperConverter
-
The field for the
wrapperTyperecord component. - wrapperType() - Method in record class eu.cloudnetservice.utils.base.CodeGenerationUtil.PrimitiveWrapperConverter
-
Returns the value of the
wrapperTyperecord component. - write(byte[]) - Method in class eu.cloudnetservice.utils.base.io.ListenableOutputStream
- write(byte[], int, int) - Method in class eu.cloudnetservice.utils.base.io.ListenableOutputStream
- write(int) - Method in class eu.cloudnetservice.utils.base.io.ListenableOutputStream
Z
- ZIP_FILE_SYSTEM_PROPERTIES - Static variable in class eu.cloudnetservice.utils.base.io.FileUtil
- zipDir(ZipOutputStream, Path, Predicate) - Static method in class eu.cloudnetservice.utils.base.io.ZipUtil
-
Walks the file tree of the given directory and copies all files and directories that match the filter into the zip output stream.
- zipToFile(Path, Path) - Static method in class eu.cloudnetservice.utils.base.io.ZipUtil
-
Walks the file tree of the given directory and copies all files and directories without any filtering into a new zip output stream at the given target destination.
- zipToFile(Path, Path, Predicate) - Static method in class eu.cloudnetservice.utils.base.io.ZipUtil
-
Walks the file tree of the given directory and copies all files and directories that match the filter into a new zip output stream at the given target destination.
- zipToStream(Path) - Static method in class eu.cloudnetservice.utils.base.io.ZipUtil
-
Zips the given directory into an input stream without filtering any files and returns it.
- zipToStream(Path, Predicate) - Static method in class eu.cloudnetservice.utils.base.io.ZipUtil
-
Zips the given directory into a zip input stream while filtering with the given filter and returning the new input stream.
- ZipUtil - Class in eu.cloudnetservice.utils.base.io
-
This zip utility class makes the process of zipping files and directories as well as extracting from zips easier and prevents malicious zip names.
- ZipUtil() - Constructor for class eu.cloudnetservice.utils.base.io.ZipUtil
All Classes and Interfaces|All Packages|Constant Field Values