Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- ACCEPTING_FILTER - Static variable in class eu.cloudnetservice.common.io.FileUtil
- addLanguageFile(String, InputStream, ClassLoader) - Static method in class eu.cloudnetservice.common.language.I18n
-
Registers the language properties file which must be loadable from the given stream to the given language and loader source.
- addLanguageFile(String, Path, ClassLoader) - Static method in class eu.cloudnetservice.common.language.I18n
-
Registers the language properties file at the given path to the given language and loader source.
- addLanguageFile(String, Properties, ClassLoader) - Static method in class eu.cloudnetservice.common.language.I18n
-
Registers the language properties file to the given language and loader source.
- anyMatch(Collection<? extends Named>, String) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
-
Checks if any of the given values matches the given regex.
- anyMatch(Collection<? extends Named>, String, boolean) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
-
Checks if any of the given values matches the given regex.
- atOrAbove() - Method in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Checks if the version of the current java runtime is at least this java version.
B
- build() - Method in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
-
Constructs a new column formatter instance from the values supplied to this builder.
- build() - Method in class eu.cloudnetservice.common.column.RowedFormatter.Builder
-
Builds a new row based formatter from this builder.
- builder() - Static method in class eu.cloudnetservice.common.column.ColumnFormatter
-
Constructs a new builder for a colum formatter.
- builder() - Static method in record class eu.cloudnetservice.common.column.RowedFormatter
-
Constructs a new builder for a rowed formatter.
- Builder() - Constructor for class eu.cloudnetservice.common.column.ColumnFormatter.Builder
- Builder() - Constructor for class eu.cloudnetservice.common.column.RowedFormatter.Builder
C
- callable - Variable in class eu.cloudnetservice.common.concurrent.ListenableTask
- classFileVersion - Variable in enum class eu.cloudnetservice.common.jvm.JavaVersion
- classFileVersion() - Method in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Get the class file version number of this java version.
- close() - Method in class eu.cloudnetservice.common.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.common.io.ListenableOutputStream
- column(Function<T, Object>) - Method in class eu.cloudnetservice.common.column.RowedFormatter.Builder
-
Sets the extractor function for the next column.
- ColumnEntry - Record Class in eu.cloudnetservice.common.column
-
Represents a column in a table view.
- ColumnEntry(int, String[]) - Constructor for record class eu.cloudnetservice.common.column.ColumnEntry
-
Creates an instance of a
ColumnEntryrecord class. - ColumnFormatter - Class in eu.cloudnetservice.common.column
-
A formatter that is highly customizable to build tables from columns.
- ColumnFormatter(String, String, char, char, char, String[]) - Constructor for class eu.cloudnetservice.common.column.ColumnFormatter
-
Constructs a new column formatter instance.
- ColumnFormatter.Builder - Class in eu.cloudnetservice.common.column
-
A builder for a column formatter.
- columnLeftBracket - Variable in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
- columnLeftBracket - Variable in class eu.cloudnetservice.common.column.ColumnFormatter
- columnLeftBracket(char) - Method in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
-
Sets the left bracket to apply to the column.
- columnMinLength - Variable in record class eu.cloudnetservice.common.column.ColumnEntry
-
The field for the
columnMinLengthrecord component. - columnMinLength() - Method in record class eu.cloudnetservice.common.column.ColumnEntry
-
Returns the value of the
columnMinLengthrecord component. - columnRightBracket - Variable in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
- columnRightBracket - Variable in class eu.cloudnetservice.common.column.ColumnFormatter
- columnRightBracket(char) - Method in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
-
Sets the right bracket to apply to the column.
- columns - Variable in class eu.cloudnetservice.common.column.RowedFormatter.Builder
- columns - Variable in record class eu.cloudnetservice.common.column.RowedFormatter
-
The field for the
columnsrecord component. - columns() - Method in record class eu.cloudnetservice.common.column.RowedFormatter
-
Returns the value of the
columnsrecord component. - columns(List<Function<T, Object>>) - Method in class eu.cloudnetservice.common.column.RowedFormatter.Builder
-
Sets the extractor functions for all columns.
- columnTitles - Variable in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
- columnTitles - Variable in class eu.cloudnetservice.common.column.ColumnFormatter
- columnTitles(String...) - Method in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
-
Sets the column titles to use for the table.
- columnTitles(List<String>) - Method in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
-
Sets the column titles to use for the table.
- convertBytesToMb(long) - Static method in class eu.cloudnetservice.common.resource.ResourceFormatter
-
Converts the given byte count to a megabyte value.
- convertToColumns(Collection<T>) - Method in record class eu.cloudnetservice.common.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.common.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.common.resource.ResourceFormatter
-
Converts the given double value into a percentage.
- copy(InputStream, OutputStream) - Static method in class eu.cloudnetservice.common.io.FileUtil
-
Copies the input stream to the output stream.
- copy(InputStream, Path) - Static method in class eu.cloudnetservice.common.io.FileUtil
-
Copies the input stream to given target path.
- copy(Path, Path) - Static method in class eu.cloudnetservice.common.io.FileUtil
-
Copies the source file to the given destination.
- copyDirectory(Path, Path) - Static method in class eu.cloudnetservice.common.io.FileUtil
-
Copies the target directory to the given destination and creates all needed parent directories.
- copyDirectory(Path, Path, DirectoryStream.Filter<Path>) - Static method in class eu.cloudnetservice.common.io.FileUtil
-
Copies the target directory to the given destination and creates all needed parent directories.
- count - Variable in class eu.cloudnetservice.common.concurrent.CountingTask
- count() - Method in class eu.cloudnetservice.common.concurrent.CountingTask
-
Gets the current count of this task.
- countDown() - Method in class eu.cloudnetservice.common.concurrent.CountingTask
-
Decrements the count of this task by one and publishes the count change.
- CountingTask<V> - Class in eu.cloudnetservice.common.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.common.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.common.concurrent.CountingTask
-
Sets the count of this counting task to the given one and publishes the count change.
- countUp() - Method in class eu.cloudnetservice.common.concurrent.CountingTask
-
Increments the count of this task by one and publishes the count change.
- CpuUsageResolver - Class in eu.cloudnetservice.common.resource
-
A utility class to resolve the usage of the host system CPU.
- CpuUsageResolver() - Constructor for class eu.cloudnetservice.common.resource.CpuUsageResolver
- createDirectory(Path) - Static method in class eu.cloudnetservice.common.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.common.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. - CURRENT_LANGUAGE - Static variable in class eu.cloudnetservice.common.language.I18n
D
- DECIMAL_FORMAT_2DIGIT_PRECISION - Static variable in class eu.cloudnetservice.common.resource.ResourceFormatter
- DEFAULT_ALPHABET_UPPERCASE - Static variable in class eu.cloudnetservice.common.util.StringUtil
- DEFAULT_AUTO_FLUSH - Static variable in class eu.cloudnetservice.common.log.io.LogOutputStream
- DEFAULT_CHARSET - Static variable in class eu.cloudnetservice.common.log.io.LogOutputStream
- defaultFormatter - Variable in class eu.cloudnetservice.common.column.RowedFormatter.Builder
- defaultFormatter - Variable in record class eu.cloudnetservice.common.column.RowedFormatter
-
The field for the
defaultFormatterrecord component. - defaultFormatter() - Method in record class eu.cloudnetservice.common.column.RowedFormatter
-
Returns the value of the
defaultFormatterrecord component. - defaultFormatter(ColumnFormatter) - Method in class eu.cloudnetservice.common.column.RowedFormatter.Builder
-
Sets the default formatter for the columns.
- delete(Path) - Static method in class eu.cloudnetservice.common.io.FileUtil
-
Deletes the file or directory at the given path.
- displayName - Variable in enum class eu.cloudnetservice.common.jvm.JavaVersion
- displayName() - Method in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Get the display name of this java version.
E
- endsWithIgnoreCase(String, String) - Static method in class eu.cloudnetservice.common.util.StringUtil
-
Checks if the given string ends with the given suffix ignoring the string casing.
- ensureChild(Path, Path) - Static method in class eu.cloudnetservice.common.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.common.io.ZipUtil
-
Ensures that the given name does not contain any characters that might lead to path traversal or other malicious behavior.
- Entry(ClassLoader, Map<String, ThreadLocal<MessageFormat>>) - Constructor for record class eu.cloudnetservice.common.language.I18n.Entry
-
Creates an instance of a
Entryrecord class. - ENTRY_FORMAT - Static variable in class eu.cloudnetservice.common.column.ColumnFormatter
- equals(Object) - Method in record class eu.cloudnetservice.common.column.ColumnEntry
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class eu.cloudnetservice.common.column.RowedFormatter
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class eu.cloudnetservice.common.language.I18n.Entry
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class eu.cloudnetservice.common.tuple.Tuple2
-
Indicates whether some other object is "equal to" this one.
- eu.cloudnetservice.common - package eu.cloudnetservice.common
- eu.cloudnetservice.common.column - package eu.cloudnetservice.common.column
- eu.cloudnetservice.common.concurrent - package eu.cloudnetservice.common.concurrent
- eu.cloudnetservice.common.hash - package eu.cloudnetservice.common.hash
- eu.cloudnetservice.common.io - package eu.cloudnetservice.common.io
- eu.cloudnetservice.common.jvm - package eu.cloudnetservice.common.jvm
- eu.cloudnetservice.common.language - package eu.cloudnetservice.common.language
- eu.cloudnetservice.common.log.io - package eu.cloudnetservice.common.log.io
- eu.cloudnetservice.common.resource - package eu.cloudnetservice.common.resource
- eu.cloudnetservice.common.tuple - package eu.cloudnetservice.common.tuple
- eu.cloudnetservice.common.util - package eu.cloudnetservice.common.util
- extract(InputStream, Path) - Static method in class eu.cloudnetservice.common.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.common.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.common.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.common.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.common.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.common.io.FileUtil
- filterWildcard(Collection<T>, String) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
-
Filters all values out of the given inputValues which are matching the given pattern.
- filterWildcard(Collection<T>, String, boolean) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
-
Filters all values out of the given inputValues which are matching the given pattern.
- finishedFuture(Object) - Static method in class eu.cloudnetservice.common.concurrent.TaskUtil
-
Creates a new task that already has a defined result.
- first - Variable in record class eu.cloudnetservice.common.tuple.Tuple2
-
The field for the
firstrecord component. - first() - Method in record class eu.cloudnetservice.common.tuple.Tuple2
-
Returns the value of the
firstrecord component. - fixPattern(String, boolean) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
-
Prepares the given regex input by replacing all wildcard characters with pattern-syntax wildcard chars.
- fixUnclosedGroups(String, int) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
-
Searches for unclosed group chars based on the given error description.
- flush() - Method in class eu.cloudnetservice.common.io.ListenableOutputStream
- flush() - Method in class eu.cloudnetservice.common.log.io.LogOutputStream
- flushLock - Variable in class eu.cloudnetservice.common.log.io.LogOutputStream
- forInfo(Logger) - Static method in class eu.cloudnetservice.common.log.io.LogOutputStream
-
Creates a new log output stream instance logging all messages to the given logger with the info log level.
- format(Collection<T>) - Method in record class eu.cloudnetservice.common.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.common.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.common.column.ColumnFormatter
-
Formats the given column entries into a table based on the formatter configuration.
- formattedColumnTitles - Variable in class eu.cloudnetservice.common.column.ColumnFormatter
- formattedEntries - Variable in record class eu.cloudnetservice.common.column.ColumnEntry
-
The field for the
formattedEntriesrecord component. - formattedEntries() - Method in record class eu.cloudnetservice.common.column.ColumnEntry
-
Returns the value of the
formattedEntriesrecord component. - formatTwoDigitPrecision(double) - Static method in class eu.cloudnetservice.common.resource.ResourceFormatter
-
Formats the given double value with a two digit precision after the decimal point.
- forWarn(Logger) - Static method in class eu.cloudnetservice.common.log.io.LogOutputStream
-
Creates a new log output stream instance logging all messages to the given logger with the severe log level.
- fromClassFileVersion(double) - Static method in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Finds the java version enum constant that is representing the given class file version.
- fromMajor(int) - Static method in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Finds the exact known java version from the given major version.
G
- generateRandomString(int) - Static method in class eu.cloudnetservice.common.util.StringUtil
-
Generates a random string consisting of uppercase characters and digits with the provided length.
- getOrDefault(Future<V>, Duration, V) - Static method in class eu.cloudnetservice.common.concurrent.TaskUtil
-
This blocks the calling thread until the result of the future is available.
- getOrDefault(Future<V>, V) - Static method in class eu.cloudnetservice.common.concurrent.TaskUtil
-
This blocks the calling thread until the result of the task is available.
- GROUP_CHARS - Static variable in class eu.cloudnetservice.common.util.WildcardUtil
- guessFromMajor(int) - Static method in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Guesses the java version from the given major version, returning either
JavaVersion.JAVA_NEXTorJavaVersion.JAVA_UNSUPPORTEDin case no known version uses the given major version.
H
- hashCode() - Method in record class eu.cloudnetservice.common.column.ColumnEntry
-
Returns a hash code value for this object.
- hashCode() - Method in record class eu.cloudnetservice.common.column.RowedFormatter
-
Returns a hash code value for this object.
- hashCode() - Method in record class eu.cloudnetservice.common.language.I18n.Entry
-
Returns a hash code value for this object.
- hashCode() - Method in record class eu.cloudnetservice.common.tuple.Tuple2
-
Returns a hash code value for this object.
- HashUtil - Class in eu.cloudnetservice.common.hash
-
Deprecated, for removal: This API element is subject to removal in a future version.for removal in a future version, do not use.
- HashUtil() - Constructor for class eu.cloudnetservice.common.hash.HashUtil
-
Deprecated.
- headerValuesSpacerChar - Variable in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
- headerValuesSpacerChar - Variable in class eu.cloudnetservice.common.column.ColumnFormatter
- headerValuesSpacerChar(char) - Method in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
-
Sets the spacer character to apply between the header of a table and the table values.
I
- I18n - Class in eu.cloudnetservice.common.language
-
The main entry point for localization made in the CloudNet system.
- I18n() - Constructor for class eu.cloudnetservice.common.language.I18n
- I18n.Entry - Record Class in eu.cloudnetservice.common.language
-
A registered entry in this registry mapping the loader source and all messages of it.
- IS_WINDOWS - Static variable in class eu.cloudnetservice.common.io.ZipUtil
- isInRange(JavaVersion, JavaVersion) - Method in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Checks if this java version is newer or at the given lower bound and older or at the given upper bound.
- isNewerOrAt(JavaVersion) - Method in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Checks if this java version is newer or at the given other version.
- isOlderOrAt(JavaVersion) - Method in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Checks if this java version is older or at the given other version.
- isPartOfPattern(char[], int) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
-
Checks if the current content index is part of the pattern or escaped.
J
- JAR_FILE_SYSTEM_PROVIDER - Static variable in class eu.cloudnetservice.common.io.FileUtil
- JAVA_10 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Java version 10.
- JAVA_11 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Java version 11 (LTS).
- JAVA_12 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Java version 12.
- JAVA_13 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Java version 13.
- JAVA_14 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Java version 14.
- JAVA_15 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Java version 15.
- JAVA_16 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Java version 16.
- JAVA_17 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Java version 17 (LTS).
- JAVA_18 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Java version 18.
- JAVA_19 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Java version 19.
- JAVA_20 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Java version 20.
- JAVA_21 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Java version 21 (LTS).
- JAVA_22 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Java version 22.
- JAVA_23 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Java version 23.
- JAVA_24 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Java version 24.
- JAVA_8 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Java version 8 (LTS).
- JAVA_9 - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Java version 9.
- JAVA_NEXT - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Represents all java versions after the latest known release in this list.
- JAVA_UNSUPPORTED - Enum constant in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Represents all java version before 8.
- JAVA_VERSIONS - Static variable in enum class eu.cloudnetservice.common.jvm.JavaVersion
- JavaVersion - Enum Class in eu.cloudnetservice.common.jvm
-
An enumeration of all java versions starting from 8.
- JavaVersion(int, double, String) - Constructor for enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Constructs a new java version constant.
K
- knownLanguages() - Static method in class eu.cloudnetservice.common.language.I18n
-
Gets all the names of the known languages to this translation manager.
L
- language() - Static method in class eu.cloudnetservice.common.language.I18n
-
Get the current language to which each message will be translated.
- language(String) - Static method in class eu.cloudnetservice.common.language.I18n
-
Sets the current message to which all messages should get translated.
- languageEntries - Variable in record class eu.cloudnetservice.common.language.I18n.Entry
-
The field for the
languageEntriesrecord component. - languageEntries() - Method in record class eu.cloudnetservice.common.language.I18n.Entry
-
Returns the value of the
languageEntriesrecord component. - LATEST_VERSION - Static variable in enum class eu.cloudnetservice.common.jvm.JavaVersion
- leftSpacer - Variable in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
- leftSpacer - Variable in class eu.cloudnetservice.common.column.ColumnFormatter
- leftSpacer(String) - Method in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
-
Sets the left spacer to apply to the column.
- level - Variable in class eu.cloudnetservice.common.log.io.LogOutputStream
- ListenableOutputStream<O> - Class in eu.cloudnetservice.common.io
-
An output stream implementation that holds a listener to call when the stream gets closed.
- ListenableOutputStream(O, CheckedConsumer<O>) - Constructor for class eu.cloudnetservice.common.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.common.concurrent
-
The listenable task is a task that is allowed to be executed over and over again.
- ListenableTask(Callable<V>) - Constructor for class eu.cloudnetservice.common.concurrent.ListenableTask
-
Constructs a new listenable task with the given callable
- loadFromLangPath(Class<?>) - Static method in class eu.cloudnetservice.common.language.I18n
-
Loads all language files which are located in the jar at given class source and registers them to the loader of the given class.
- logger - Variable in class eu.cloudnetservice.common.log.io.LogOutputStream
- LOGGER - Static variable in class eu.cloudnetservice.common.io.FileUtil
- LOGGER - Static variable in class eu.cloudnetservice.common.io.ZipUtil
- LOGGER - Static variable in class eu.cloudnetservice.common.language.I18n
- LogOutputStream - Class in eu.cloudnetservice.common.log.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.common.log.io.LogOutputStream
-
Creates a new log output stream instance.
M
- majorVersion - Variable in enum class eu.cloudnetservice.common.jvm.JavaVersion
- majorVersion() - Method in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Returns the major version number of this java version.
- mapZipFile(Path, CheckedFunction1<FileSystem, T>, T) - Static method in class eu.cloudnetservice.common.io.FileUtil
-
Opens the given zip into a
FileSystemand passes it into the given function. - matches(String, Pattern, Named, boolean) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
-
Tries to match the given data name using the compiled pattern, falling back to a direct equal check if the given compiled pattern is null.
- MESSAGE_FORMAT - Static variable in class eu.cloudnetservice.common.language.I18n
- move(Path, Path, CopyOption...) - Static method in class eu.cloudnetservice.common.io.FileUtil
-
Moves the file at the source path to the given destination path.
N
- name() - Method in interface eu.cloudnetservice.common.Named
-
Get the unique name identifier of this object in the related scope.
- Named - Interface in eu.cloudnetservice.common
-
Identifies that the object implementing this interface can be identified using the name supplied by the
Named.name()method. - newInstance(Logger, Level) - Static method in class eu.cloudnetservice.common.log.io.LogOutputStream
-
Creates a new log output stream instance logging all messages to the given logger using the given log level.
O
- ONE_MB_IN_BYTES - Static variable in class eu.cloudnetservice.common.resource.ResourceFormatter
- openZipFile(Path, CheckedConsumer<FileSystem>) - Static method in class eu.cloudnetservice.common.io.FileUtil
-
Opens the given zip into a
FileSystemand passes it into the given consumer. - OS_BEAN - Static variable in class eu.cloudnetservice.common.resource.CpuUsageResolver
P
- processCpuLoad() - Static method in class eu.cloudnetservice.common.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.common.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
- REGISTERED_ENTRIES - Static variable in class eu.cloudnetservice.common.language.I18n
- repeat(char, int) - Static method in class eu.cloudnetservice.common.util.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.common.io.FileUtil
-
Resolves the given array for the base path and returns the final path after all children are resolved one after another.
- resolveActualJavaVersions() - Static method in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Constructs an array of the java versions that are actually usable in the runtime (this excludes the unsupported and next constants).
- resolveCodeSourceOfClass(Class<?>) - Static method in class eu.cloudnetservice.common.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.common.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.
- resolveRuntimeVersion() - Static method in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Resolves the runtime version of the current jvm.
- ResourceFormatter - Class in eu.cloudnetservice.common.resource
-
A small utility class to convert resource values between different formats.
- ResourceFormatter() - Constructor for class eu.cloudnetservice.common.resource.ResourceFormatter
- ResourceResolver - Class in eu.cloudnetservice.common.resource
-
A utility class to resolve the location of class resource on the class path or file system.
- ResourceResolver() - Constructor for class eu.cloudnetservice.common.resource.ResourceResolver
- resultValue - Variable in class eu.cloudnetservice.common.concurrent.CountingTask
- rightSpacer - Variable in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
- rightSpacer - Variable in class eu.cloudnetservice.common.column.ColumnFormatter
- rightSpacer(String) - Method in class eu.cloudnetservice.common.column.ColumnFormatter.Builder
-
Sets the right spacer to apply to the column.
- RowedFormatter<T> - Record Class in eu.cloudnetservice.common.column
-
A formatter for rows based on columns.
- RowedFormatter(ColumnFormatter, List<Function<T, Object>>) - Constructor for record class eu.cloudnetservice.common.column.RowedFormatter
-
Creates an instance of a
RowedFormatterrecord class. - RowedFormatter.Builder<T> - Class in eu.cloudnetservice.common.column
-
A builder that can be used to construct a new row based formatter.
- run(boolean) - Method in class eu.cloudnetservice.common.concurrent.ListenableTask
-
Runs the callable provided to this listenable task.
- runAsync(CheckedRunnable) - Static method in class eu.cloudnetservice.common.concurrent.TaskUtil
-
Runs the given runnable in a fork thread pool and wraps it into a completable future.
- RUNTIME_VERSION - Static variable in enum class eu.cloudnetservice.common.jvm.JavaVersion
- runtimeVersion() - Static method in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Get the java version enum constant representing the current runtime version.
- runVirtualAsync(CheckedRunnable) - Static method in class eu.cloudnetservice.common.concurrent.TaskUtil
-
Runs the given runnable in a virtual thread pool and wraps it into a completable future.
S
- second - Variable in record class eu.cloudnetservice.common.tuple.Tuple2
-
The field for the
secondrecord component. - second() - Method in record class eu.cloudnetservice.common.tuple.Tuple2
-
Returns the value of the
secondrecord component. - SECURE_RANDOM - Static variable in class eu.cloudnetservice.common.util.StringUtil
- source - Variable in record class eu.cloudnetservice.common.language.I18n.Entry
-
The field for the
sourcerecord component. - source() - Method in record class eu.cloudnetservice.common.language.I18n.Entry
-
Returns the value of the
sourcerecord component. - startsWithIgnoreCase(String, String) - Static method in class eu.cloudnetservice.common.util.StringUtil
-
Checks if the given string starts with the given prefix ignoring the string casing.
- state - Variable in class eu.cloudnetservice.common.concurrent.ListenableTask
- STATE_DONE - Static variable in class eu.cloudnetservice.common.concurrent.ListenableTask
- STATE_NEW - Static variable in class eu.cloudnetservice.common.concurrent.ListenableTask
- STATE_RUN - Static variable in class eu.cloudnetservice.common.concurrent.ListenableTask
- StringUtil - Class in eu.cloudnetservice.common.util
-
Utility class for working with strings.
- StringUtil() - Constructor for class eu.cloudnetservice.common.util.StringUtil
- supplyAsync(CheckedFunction0<V>) - Static method in class eu.cloudnetservice.common.concurrent.TaskUtil
-
Supplies the given supplier into the fork thread pool.
- supplyVirtualAsync(CheckedFunction0<V>) - Static method in class eu.cloudnetservice.common.concurrent.TaskUtil
-
Supplies the given supplier into a virtual thread pool.
- supported() - Method in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Checks if this java version constant is actually supported.
- systemCpuLoad() - Static method in class eu.cloudnetservice.common.resource.CpuUsageResolver
-
Reads the current system cpu usage and converts the returned value into a percentage.
T
- TaskUtil - Class in eu.cloudnetservice.common.concurrent
-
A
Futureutil, which provides utility methods to supply runnables and functions into a task. - TaskUtil() - Constructor for class eu.cloudnetservice.common.concurrent.TaskUtil
- TEMP_DIR - Static variable in class eu.cloudnetservice.common.io.FileUtil
- toLower(String) - Static method in class eu.cloudnetservice.common.util.StringUtil
-
Converts all the characters in the given string to lower case using a locale insensitive operation.
- toPrintStream() - Method in class eu.cloudnetservice.common.log.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.common.log.io.LogOutputStream
-
Wraps this log output stream in a print stream using the given auto flush and charset settings.
- toSha256(byte[]) - Static method in class eu.cloudnetservice.common.hash.HashUtil
-
Deprecated.
- toSha256(String) - Static method in class eu.cloudnetservice.common.hash.HashUtil
-
Deprecated.
- toString() - Method in record class eu.cloudnetservice.common.column.ColumnEntry
-
Returns a string representation of this record class.
- toString() - Method in record class eu.cloudnetservice.common.column.RowedFormatter
-
Returns a string representation of this record class.
- toString() - Method in record class eu.cloudnetservice.common.language.I18n.Entry
-
Returns a string representation of this record class.
- toString() - Method in record class eu.cloudnetservice.common.tuple.Tuple2
-
Returns a string representation of this record class.
- toUpper(String) - Static method in class eu.cloudnetservice.common.util.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.
- trans(String, Object...) - Static method in class eu.cloudnetservice.common.language.I18n
-
Tries to translate the given message key using all currently registered language files for the language this registry currently uses.
- tryCompile(String, boolean) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
-
Compiles the given pattern string and (when needed) tries to automatically fix syntax errors in it.
- tryFixPattern(PatternSyntaxException, boolean) - Static method in class eu.cloudnetservice.common.util.WildcardUtil
-
Tries to automatically fix a pattern based on the given exception.
- tryTranslate(String, Object...) - Method in record class eu.cloudnetservice.common.language.I18n.Entry
-
Tries to translate the given key and formats it with the given arguments.
- Tuple2<F,
S> - Record Class in eu.cloudnetservice.common.tuple -
A pair consisting of two elements: the first and second one.
- Tuple2(F, S) - Constructor for record class eu.cloudnetservice.common.tuple.Tuple2
-
Creates an instance of a
Tuple2record class.
U
- unregisterLanguageFiles(ClassLoader) - Static method in class eu.cloudnetservice.common.language.I18n
-
Unregisters all language files which were registered by providing the given class loader.
V
- valueOf(String) - Static method in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class eu.cloudnetservice.common.jvm.JavaVersion
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VIRTUAL_THREAD_EXECUTOR - Static variable in class eu.cloudnetservice.common.concurrent.TaskUtil
W
- walkFileTree(Path, BiConsumer<Path, Path>) - Static method in class eu.cloudnetservice.common.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<Path, Path>, boolean) - Static method in class eu.cloudnetservice.common.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<Path, Path>, boolean, String) - Static method in class eu.cloudnetservice.common.io.FileUtil
-
Walks the file tree while filtering for the given glob and only visiting directories if specified.
- walkFileTree(Path, BiConsumer<Path, Path>, boolean, DirectoryStream.Filter<Path>) - Static method in class eu.cloudnetservice.common.io.FileUtil
-
Walks the file tree while filtering with the given filter and only visiting directories if specified.
- WildcardUtil - Class in eu.cloudnetservice.common.util
-
Small utility class which supports pattern based searching through given input collections and tries to fix mistakes in the given pattern input.
- WildcardUtil() - Constructor for class eu.cloudnetservice.common.util.WildcardUtil
- wrap(String...) - Static method in record class eu.cloudnetservice.common.column.ColumnEntry
-
Wraps the given entries into a column entry.
- wrapped - Variable in class eu.cloudnetservice.common.io.ListenableOutputStream
- write(byte[]) - Method in class eu.cloudnetservice.common.io.ListenableOutputStream
- write(byte[], int, int) - Method in class eu.cloudnetservice.common.io.ListenableOutputStream
- write(int) - Method in class eu.cloudnetservice.common.io.ListenableOutputStream
Z
- ZIP_FILE_SYSTEM_PROPERTIES - Static variable in class eu.cloudnetservice.common.io.FileUtil
- zipDir(ZipOutputStream, Path, Predicate<Path>) - Static method in class eu.cloudnetservice.common.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.common.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<Path>) - Static method in class eu.cloudnetservice.common.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.common.io.ZipUtil
-
Zips the given directory into an input stream without filtering any files and returns it.
- zipToStream(Path, Predicate<Path>) - Static method in class eu.cloudnetservice.common.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.common.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.common.io.ZipUtil
All Classes and Interfaces|All Packages|Constant Field Values