Index
All Classes and Interfaces|All Packages
A
- addClassSpecificMap(String, Map<String, Map<String, String>>) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Adds a locale map for a specific class.
- addComponentSpecificMap(String, String, Map<String, String>) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Adds a locale map for a specific component.
- addLocaleChangeListener(LocaleChangeListener) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Adds a listener to be notified of locale changes.
- addVariableToComponent(String, String, String, String) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Adds a text value for a specific variable in the locale map.
- Advantages of Trie: - Search tag in class com.everdro1d.libs.structs.Trie
- Section
- ApplicationCore - Class in com.everdro1d.libs.core
-
The
ApplicationCore
class provides core utility methods for managing and configuring applications. - Applications of Trie: - Search tag in class com.everdro1d.libs.structs.Trie
- Section
C
- checkCLIArgs(String[], CommandManager) - Static method in class com.everdro1d.libs.core.ApplicationCore
-
Processes and executes CLI arguments using the provided
CommandManager
. - checkForLocaleFile(String) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Checks if the specified locale file exists.
- clear() - Method in class com.everdro1d.libs.structs.Trie
-
Clears the children of the root node.
- com.everdro1d.libs.commands - package com.everdro1d.libs.commands
- com.everdro1d.libs.commands.included - package com.everdro1d.libs.commands.included
- com.everdro1d.libs.core - package com.everdro1d.libs.core
- com.everdro1d.libs.io - package com.everdro1d.libs.io
- com.everdro1d.libs.locale - package com.everdro1d.libs.locale
- com.everdro1d.libs.structs - package com.everdro1d.libs.structs
- CommandInterface - Interface in com.everdro1d.libs.commands
-
Interface for defining commands that can be executed by the
CommandManager
. - CommandManager - Class in com.everdro1d.libs.commands
-
CommandManager is a tool for managing CLI arguments and their associated commands.
- CommandManager() - Constructor for class com.everdro1d.libs.commands.CommandManager
-
Creates a new CommandManager with only the default
-help
command. - CommandManager(Map<String, CommandInterface>) - Constructor for class com.everdro1d.libs.commands.CommandManager
-
Creates a new CommandManager containing the default commands and any custom commands defined by the map.
- contains(String) - Method in class com.everdro1d.libs.structs.Trie
-
Checks if the given key exists in the tree.
- containsAll(List<String>) - Method in class com.everdro1d.libs.structs.Trie
-
Checks if all the given keys exist in the tree.
- containsAny(String[], String) - Static method in class com.everdro1d.libs.core.Utils
-
Checks if the specified string contains any of the substrings in the given array.
- containsAny(List<String>) - Method in class com.everdro1d.libs.structs.Trie
-
Checks if any of the given keys exist in the tree.
- copyToClipboard(String) - Static method in class com.everdro1d.libs.core.Utils
-
Copies the specified string to the system clipboard.
D
- Definition - Search tag in class com.everdro1d.libs.structs.Trie
- Section
- deleteFile(String, boolean) - Static method in class com.everdro1d.libs.io.Files
-
Deletes a file at the specified path.
- detectOS() - Static method in class com.everdro1d.libs.core.ApplicationCore
-
Detects the operating system and returns its general type.
- Disadvantages of Trie: - Search tag in class com.everdro1d.libs.structs.Trie
- Section
- dispose() - Method in interface com.everdro1d.libs.locale.LocaleChangeListener
-
Called when the listener is no longer needed.
E
- execute(CommandManager) - Method in interface com.everdro1d.libs.commands.CommandInterface
-
Executes the command using the provided
CommandManager
. - execute(CommandManager) - Method in class com.everdro1d.libs.commands.included.HelpCommand
- executeCommand(String) - Method in class com.everdro1d.libs.commands.CommandManager
-
Execute a command from the map.
- extractUniqueValuesByPredicate(String, Predicate<Map<String, String>>, Map<String, Map<String, String>>) - Static method in class com.everdro1d.libs.core.Utils
-
Extracts a set of unique values from a nested map based on a specified property and filter condition.
F
- Files - Class in com.everdro1d.libs.io
-
The Files class provides utility methods for file and directory operations.
G
- get(String) - Method in class com.everdro1d.libs.structs.Trie
-
Get the value of a key in the Trie.
- getAllFilesInDirectory(String) - Static method in class com.everdro1d.libs.io.Files
-
Retrieves a set of all file names in a specified directory.
- getAllVariablesWithinClassSpecificMap(String) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Retrieves all variables within a specific class's locale map.
- getApplicationConfigDirectory(Class<?>, String) - Static method in class com.everdro1d.libs.core.ApplicationCore
-
Retrieves the configuration directory for the application within the developer's config folder.
- getApplicationName(Class<?>) - Static method in class com.everdro1d.libs.core.ApplicationCore
-
Determines the application name based on the JAR file or package structure.
- getAvailableLocales() - Method in class com.everdro1d.libs.locale.LocaleManager
-
Retrieves a map of available locales that have corresponding files in the locale directory.
- getClassesInLocaleMap() - Method in class com.everdro1d.libs.locale.LocaleManager
-
Retrieves a list of all class names in the locale map.
- getClassSpecificMap(String) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Retrieves the locale map for a specific class.
- getCommand(String) - Method in class com.everdro1d.libs.commands.CommandManager
-
Retrieves the matching command from the map.
- getCommandMap() - Method in class com.everdro1d.libs.commands.CommandManager
-
Retrieves the command map.
- getComponentsInClassMap(String) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Retrieves a list of all component names for a specific class in the locale map.
- getComponentSpecificMap(String, String) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Retrieves the locale map for a specific component.
- getCurrentLocale() - Method in class com.everdro1d.libs.locale.LocaleManager
-
Retrieves the current locale code.
- getCurrentLocaleName() - Method in class com.everdro1d.libs.locale.LocaleManager
-
Retrieves the name of the current locale.
- getCurrentTime(boolean, boolean, boolean) - Static method in class com.everdro1d.libs.core.Utils
-
Returns the current date and/or time as a formatted string.
- getDescription() - Method in interface com.everdro1d.libs.commands.CommandInterface
-
Returns the description of the command.
- getDescription() - Method in class com.everdro1d.libs.commands.included.HelpCommand
- getISOCodes() - Method in class com.everdro1d.libs.locale.LocaleManager
-
Retrieves an array of ISO 639-3 codes for all available locales.
- getJarDirectory(Class<?>) - Static method in class com.everdro1d.libs.io.Files
-
Retrieves the directory containing the JAR file of the specified class.
- getJarPath(Class<?>) - Static method in class com.everdro1d.libs.io.Files
-
Retrieves the absolute path of the JAR file containing the specified class.
- getLatestVersion(String) - Static method in class com.everdro1d.libs.core.ApplicationCore
-
Retrieves the latest version of the application from the GitHub releases page using latest tag redirect function.
- getLocaleDirectoryPath() - Method in class com.everdro1d.libs.locale.LocaleManager
-
Retrieves the path to the locale directory.
- getLocaleMap() - Method in class com.everdro1d.libs.locale.LocaleManager
-
Retrieves the entire locale map, which contains UI component text mappings.
- getMatchingFiles(String, String) - Static method in class com.everdro1d.libs.io.Files
-
Retrieves a set of file names in a directory that contain a specific substring.
- getOriginalErrorStream() - Method in class com.everdro1d.libs.io.TiedOutputStream
-
Retrieves the original standard error stream (System.err) before it was tied.
- getOriginalOutputStream() - Method in class com.everdro1d.libs.io.TiedOutputStream
-
Retrieves the original standard output stream (System.out) before it was tied.
- getSanitizedCurrentTime(boolean, boolean, boolean) - Static method in class com.everdro1d.libs.core.Utils
-
Returns a file-system-safe version of the current date and/or time.
- getUserConfigDirectory() - Static method in class com.everdro1d.libs.core.Utils
-
Retrieves the user's configuration directory based on the operating system.
- getValidCommands() - Method in class com.everdro1d.libs.commands.CommandManager
-
Retrieves a list of existing keys in the Command Map.
- getValidCommandsWithDescription() - Method in class com.everdro1d.libs.commands.CommandManager
-
Retrieves a list of valid commands along with their descriptions.
- getValidLocaleMap() - Method in class com.everdro1d.libs.locale.LocaleManager
-
Retrieves a map of all valid locales with their ISO 639 codes and language names.
- getVariableInComponent(String, String, String) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Retrieves the text for a specific variable in the locale map.
- getVariablesInComponentMap(String, String) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Retrieves a list of all variable names for a specific component in the locale map.
H
- HelpCommand - Class in com.everdro1d.libs.commands.included
-
A
-help
command that prints all valid CLI argument commands when executed. - HelpCommand() - Constructor for class com.everdro1d.libs.commands.included.HelpCommand
-
Constructs a new
HelpCommand
instance without a description. - HelpCommand(String) - Constructor for class com.everdro1d.libs.commands.included.HelpCommand
-
Constructs a new
HelpCommand
instance.
I
- insert(String) - Method in class com.everdro1d.libs.structs.Trie
-
Inserts the given key into the Trie, creating nodes where necessary.
- insert(String, T) - Method in class com.everdro1d.libs.structs.Trie
-
Inserts the given key-value pair into the Trie, creating nodes where necessary.
- insert(List<String>) - Method in class com.everdro1d.libs.structs.Trie
-
Inserts the list of keys into the Trie, creating nodes where necessary.
- insert(Map<String, T>) - Method in class com.everdro1d.libs.structs.Trie
-
Inserts a map of key-value pairs into the Trie, creating nodes where necessary.
- isCopyEnabled() - Method in class com.everdro1d.libs.io.TiedOutputStream
-
Checks whether the tied output stream is set to copy output to the original output stream.
- isEmpty() - Method in class com.everdro1d.libs.structs.Trie
-
Checks if the Trie is empty.
- isEnabled() - Method in class com.everdro1d.libs.io.TiedOutputStream
-
Checks whether the tied output stream is currently enabled.
- isFileInUse(Path) - Static method in class com.everdro1d.libs.io.Files
-
Checks if a file is currently in use by attempting to acquire a write lock on it.
- isLocaleCodeValid(String) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Validates whether the provided locale code exists in the valid locale map.
K
- Key Features - Search tag in class com.everdro1d.libs.core.ApplicationCore
- Section
- Key Features: - Search tag in class com.everdro1d.libs.core.Utils
- Section
L
- listKeys() - Method in class com.everdro1d.libs.structs.Trie
-
List the keys in a Trie.
- listKeysMatching(String) - Method in class com.everdro1d.libs.structs.Trie
-
List the keys in a Trie that match the prefix.
- loadConfigFile(Class<?>, String) - Static method in class com.everdro1d.libs.core.ApplicationCore
-
Loads a
Preferences
node from an XML file in the application's configuration directory. - loadLocaleFromFile(String) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Loads a locale from a file.
- loadMapFromFile(String) - Static method in class com.everdro1d.libs.io.Files
-
Loads a map from a file where each line represents a key-value pair in the format `key=value`.
- LocaleChangeListener - Interface in com.everdro1d.libs.locale
-
The
LocaleChangeListener
interface defines a contract for classes that need to respond to locale changes. - LocaleManager - Class in com.everdro1d.libs.locale
-
The
LocaleManager
class is responsible for managing application locales, primarily for Swing GUI applications. - LocaleManager(Class<?>, String) - Constructor for class com.everdro1d.libs.locale.LocaleManager
-
Initializes the LocaleManager with the specified class and developer directory name.
N
- notifyLocaleChange() - Method in class com.everdro1d.libs.locale.LocaleManager
-
Notifies all registered listeners of a locale change.
O
- onLocaleChange() - Method in interface com.everdro1d.libs.locale.LocaleChangeListener
-
Called when the locale changes.
- openInFileManager(String) - Static method in class com.everdro1d.libs.io.Files
-
Opens a directory in the default file manager and selects the specified file.
- openLink(String) - Static method in class com.everdro1d.libs.core.Utils
-
Opens the specified URL in the default web browser.
P
- print(Object) - Method in class com.everdro1d.libs.io.TiedOutputStream
- printf(String, Object...) - Method in class com.everdro1d.libs.io.TiedOutputStream
- println(Object) - Method in class com.everdro1d.libs.io.TiedOutputStream
- printlnList(List<?>) - Static method in class com.everdro1d.libs.core.Utils
-
Prints each element of the provided list to the console in a newline.
- printNestedMapFormatted(Object) - Static method in class com.everdro1d.libs.core.Utils
-
Recursively prints a nested map in a JSON-like formatted structure.
- printValidLocales() - Method in class com.everdro1d.libs.locale.LocaleManager
-
Prints all valid locale codes and their corresponding language names to the console.
- Properties of Trie: - Search tag in class com.everdro1d.libs.structs.Trie
- Section
R
- registerCommand(String, CommandInterface) - Method in class com.everdro1d.libs.commands.CommandManager
-
Add a command to the map.
- registerCommands(Map<String, CommandInterface>) - Method in class com.everdro1d.libs.commands.CommandManager
-
Add a map of custom commands to the command map.
- reloadLocaleInProgram(String) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Reloads the locale in the program by loading the specified locale file and notifying all active
LocaleChangeListener
. - remove(String) - Method in class com.everdro1d.libs.structs.Trie
-
Removes the given key from the Trie.
- removeAll(List<String>) - Method in class com.everdro1d.libs.structs.Trie
-
Removes all keys in a given list from the Trie
- removeClassSpecificMap(String) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Removes the locale map for a specific class.
- removeComponentSpecificMap(String, String) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Removes the locale map for a specific component.
- removeLocaleChangeListener(LocaleChangeListener) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Removes a listener from being notified of locale changes.
- removeVariableInComponent(String, String, String) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Removes a text value for a specific variable in the locale map.
- replaceCharAt(String, int, String) - Static method in class com.everdro1d.libs.core.Utils
-
Replaces the character at the specified index in the given string with the provided replacement string.
- resetOutputStreams() - Method in class com.everdro1d.libs.io.TiedOutputStream
-
Resets System.out and System.err to their original streams.
- reverseKeyFromValueInMap(String, Map<String, String>) - Static method in class com.everdro1d.libs.core.Utils
-
Reverses the key associated with the given value in the provided map.
- run() - Method in class com.everdro1d.libs.io.SyncPipe
-
Transfers data from the InputStream to the OutputStream.
- runCommand(List<String>, boolean) - Static method in class com.everdro1d.libs.core.Utils
-
Executes a command in the system shell.
- runCommand(List<String>, String, boolean) - Static method in class com.everdro1d.libs.core.Utils
-
Executes a command in the system shell.
- runCommand(List<String>, String, boolean, boolean) - Static method in class com.everdro1d.libs.core.Utils
-
Executes a command in the system shell.
S
- saveConfigFile(Class<?>, String, Preferences) - Static method in class com.everdro1d.libs.core.ApplicationCore
-
Saves a
Preferences
node as an XML file in the application's configuration directory. - saveLocaleToFile(String, Map<String, Map<String, Map<String, String>>>, boolean) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Saves the provided locale map to a file.
- saveMapToFile(String, String, Map<String, String>, boolean) - Static method in class com.everdro1d.libs.io.Files
-
Saves a map to a file in the format `key=value` with each entry on a new line.
- set(String, T) - Method in class com.everdro1d.libs.structs.Trie
-
Set the value for an existing key in the Trie.
- setCopyEnabled(boolean) - Method in class com.everdro1d.libs.io.TiedOutputStream
-
Sets whether the tied output stream should copy output to the original output stream.
- setDescription(String) - Method in interface com.everdro1d.libs.commands.CommandInterface
-
Sets the description of the command.
- setDescription(String) - Method in class com.everdro1d.libs.commands.included.HelpCommand
- setEnabled(boolean) - Method in class com.everdro1d.libs.io.TiedOutputStream
-
Enables or disables the tied output stream.
- setLocaleDirectoryPath(Path) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Sets the path to the locale directory.
- setLocaleMap(Map<String, Map<String, Map<String, String>>>) - Method in class com.everdro1d.libs.locale.LocaleManager
-
Sets the locale map and marks it as updated.
- Setup - Search tag in class com.everdro1d.libs.commands.CommandManager
- Section
- startsWith(String) - Method in class com.everdro1d.libs.structs.Trie
-
Checks if any keys in the tree start with the given prefix.
- SyncPipe - Class in com.everdro1d.libs.io
-
A utility class that facilitates the transfer of data between an InputStream and an OutputStream.
- SyncPipe(InputStream, OutputStream) - Constructor for class com.everdro1d.libs.io.SyncPipe
-
Constructs a SyncPipe instance with the specified InputStream and OutputStream.
T
- TiedOutputStream - Class in com.everdro1d.libs.io
-
TiedOutputStream is a class that ties the standard output and error stream to a single output stream and writes to both this stream and the original standard output.
- TiedOutputStream(OutputStream) - Constructor for class com.everdro1d.libs.io.TiedOutputStream
-
Creates a new TiedOutputStream.
- tieOutputStreams() - Method in class com.everdro1d.libs.io.TiedOutputStream
-
Ties the current output stream to both System.out and System.err.
- tieOutputStreams(boolean) - Method in class com.everdro1d.libs.io.TiedOutputStream
-
Ties the current output stream to both System.out and System.err.
- Trie<T> - Class in com.everdro1d.libs.structs
-
Definition
- Trie() - Constructor for class com.everdro1d.libs.structs.Trie
-
Creates a new Trie without any values.
- Trie(List<String>) - Constructor for class com.everdro1d.libs.structs.Trie
-
Creates a new Trie containing the keys given in the list.
- Trie(Map<String, T>) - Constructor for class com.everdro1d.libs.structs.Trie
-
Creates a new Trie containing the key-value pairs given in the map.
U
- Usage - Search tag in class com.everdro1d.libs.commands.included.HelpCommand
- Section
- Usage - Search tag in class com.everdro1d.libs.core.ApplicationCore
- Section
- Utils - Class in com.everdro1d.libs.core
-
A utility class providing various helper methods for common operations.
V
- validateFilePath(String) - Static method in class com.everdro1d.libs.io.Files
-
Validates whether a given file path is valid and exists.
W
- write(byte[], int, int) - Method in class com.everdro1d.libs.io.TiedOutputStream
- write(int) - Method in class com.everdro1d.libs.io.TiedOutputStream
All Classes and Interfaces|All Packages