Index
All Classes and Interfaces|All Packages|Serialized Form
A
- addParameter(Map<String, String>) - Method in class br.dev.rplus.cup.net.UrlBuilder
-
Adds the given parameters to the URL.
- AnsiColors - Enum Class in br.dev.rplus.cup.enums
-
AnsiColors is an enumeration that defines a set of ANSI escape codes for text color formatting.
B
- BLACK - Enum constant in enum class br.dev.rplus.cup.enums.AnsiColors
-
The ANSI escape codes for dark shade of the color black.
- BLUE - Enum constant in enum class br.dev.rplus.cup.enums.AnsiColors
-
The ANSI escape codes for dark shade of the color blue.
- body(String) - Method in class br.dev.rplus.cup.net.HttpRequester
-
Sets the body for the HTTP request.
- br.dev.rplus.cup.enums - package br.dev.rplus.cup.enums
- br.dev.rplus.cup.environment - package br.dev.rplus.cup.environment
- br.dev.rplus.cup.log - package br.dev.rplus.cup.log
- br.dev.rplus.cup.net - package br.dev.rplus.cup.net
- br.dev.rplus.cup.object - package br.dev.rplus.cup.object
- br.dev.rplus.cup.object.export - package br.dev.rplus.cup.object.export
- br.dev.rplus.cup.utils - package br.dev.rplus.cup.utils
- builder() - Static method in class br.dev.rplus.cup.net.HttpRequester
-
Creates a new instance of the `RequestHttp` class.
- builder() - Static method in class br.dev.rplus.cup.net.UrlBuilder
-
Creates a new instance of the UrlBuilder class.
C
- capitalize(String) - Static method in class br.dev.rplus.cup.utils.StringUtils
-
Capitalizes the first letter of a string.
- close(Object) - Static method in class br.dev.rplus.cup.object.ObjectCloser
-
Closes an object and its fields.
- close(Object...) - Static method in class br.dev.rplus.cup.object.ObjectCloser
-
Closes an array of objects and their fields.
- connectionTimeout(int) - Method in class br.dev.rplus.cup.net.HttpRequester
-
Sets the connection timeout for the request.
- contains(String) - Static method in class br.dev.rplus.cup.environment.Properties
-
Checks if the specified property exists in the loaded properties.
- convertUlidToUUID(Ulid) - Static method in class br.dev.rplus.cup.utils.UniqueIdentifiers
-
Converts a ULID to a UUID (RFC-4122 format).
- convertUlidToUUIDv4(Ulid) - Static method in class br.dev.rplus.cup.utils.UniqueIdentifiers
-
Converts a ULID to a Version 4 UUID.
- countOccurrences(String, String) - Static method in class br.dev.rplus.cup.utils.StringUtils
-
Counts the number of occurrences of a substring in a string.
- CSV - Enum constant in enum class br.dev.rplus.cup.object.export.ExportType
-
CSV export strategy.
- CsvExportStrategy - Class in br.dev.rplus.cup.object.export
-
CSV export strategy.
- CsvExportStrategy() - Constructor for class br.dev.rplus.cup.object.export.CsvExportStrategy
-
Constructs a new CSV export strategy.
- CYAN - Enum constant in enum class br.dev.rplus.cup.enums.AnsiColors
-
The ANSI escape codes for dark shade of the color cyan.
D
- DateFormatter - Class in br.dev.rplus.cup.utils
-
Utility class to format dates.
- DateFormatter(String) - Constructor for class br.dev.rplus.cup.utils.DateFormatter
-
Default constructor.
- debug(String, Object...) - Static method in class br.dev.rplus.cup.log.Logger
-
Logs a message at the DEBUG level.
- DEBUG - Static variable in class br.dev.rplus.cup.log.LoggerLevel
-
The DEBUG log level designates fine-grained informational events that are most useful to debug an application.
- DELETE - Enum constant in enum class br.dev.rplus.cup.net.HttpRequester.HttpMethod
-
HTTP DELETE method.
E
- equals(Object) - Method in class br.dev.rplus.cup.log.LoggerLevel
- error(String, Object...) - Static method in class br.dev.rplus.cup.log.Logger
-
Logs a message at the ERROR level.
- ERROR - Static variable in class br.dev.rplus.cup.log.LoggerLevel
-
The ERROR log level designates error events that might still allow the application to continue running.
- export(Object) - Method in class br.dev.rplus.cup.object.export.ExportData
-
Exports the given object using the default export strategy and file.
- export(Object, ExportType) - Method in class br.dev.rplus.cup.object.export.ExportData
-
Exports the given object using the specified export type.
- export(Object, ExportType, File) - Method in class br.dev.rplus.cup.object.export.ExportData
-
Exports the given object using the specified export type and file.
- export(Object, File) - Method in class br.dev.rplus.cup.object.export.CsvExportStrategy
- export(Object, File) - Method in interface br.dev.rplus.cup.object.export.ExportStrategy
-
Export object to file.
- export(Object, File) - Method in class br.dev.rplus.cup.object.export.JsonExportStrategy
- export(Object, File) - Method in class br.dev.rplus.cup.object.export.XmlExportStrategy
- ExportData - Class in br.dev.rplus.cup.object.export
-
Utility class to export data to a file from an object.
- ExportData() - Constructor for class br.dev.rplus.cup.object.export.ExportData
-
Default constructor.
- ExportData(ExportStrategy) - Constructor for class br.dev.rplus.cup.object.export.ExportData
-
Constructor with export strategy.
- ExportData(ExportStrategy, File) - Constructor for class br.dev.rplus.cup.object.export.ExportData
-
Constructor with export strategy and file.
- ExportStrategy - Interface in br.dev.rplus.cup.object.export
-
Interface for Export strategy.
- ExportType - Enum Class in br.dev.rplus.cup.object.export
-
Enum for export types (export strategies).
F
- fatal(String, Object...) - Static method in class br.dev.rplus.cup.log.Logger
-
Logs a message at the FATAL level.
- FATAL - Static variable in class br.dev.rplus.cup.log.LoggerLevel
-
The FATAL log level designates very severe error events that will presumably lead the application to abort.
- followRedirects(boolean) - Method in class br.dev.rplus.cup.net.HttpRequester
-
Sets whether to follow redirects for the request.
- format(LocalDate) - Static method in class br.dev.rplus.cup.utils.DateFormatter
-
Formats a given date using the DATE_FORMATTER and returns the formatted date as a string.
- format(Date) - Static method in class br.dev.rplus.cup.utils.DateFormatter
-
Formats a given date using the DATE_FORMATTER and returns the formatted date as a string.
- format(LogRecord) - Method in class br.dev.rplus.cup.log.LoggerFormatter
-
Formats the given log record and returns a formatted string.
G
- get(String) - Static method in class br.dev.rplus.cup.environment.Properties
-
Retrieves the value of the specified property.
- get(String, String) - Static method in class br.dev.rplus.cup.environment.Properties
-
Retrieves the value of the specified property, or returns the specified default value if the property is not found.
- GET - Enum constant in enum class br.dev.rplus.cup.net.HttpRequester.HttpMethod
-
HTTP GET method.
- getApplication() - Static method in class br.dev.rplus.cup.log.Logger
-
Returns the application identifier.
- getColorCode() - Method in enum class br.dev.rplus.cup.enums.AnsiColors
-
Gets the ANSI color code associated with this enum constant.
- getDateFormatter() - Static method in class br.dev.rplus.cup.utils.DateFormatter
-
Returns the default date formatter.
- getExportStrategy() - Method in class br.dev.rplus.cup.object.export.ExportData
-
Gets the export strategy.
- getFile() - Method in class br.dev.rplus.cup.object.export.ExportData
-
Gets the file where the data will be exported.
- getHashUlid(long, String) - Static method in class br.dev.rplus.cup.utils.UniqueIdentifiers
-
Generates a hash-based ULID using the specified timestamp and name.
- getLevel() - Static method in class br.dev.rplus.cup.log.Logger
-
Returns the log level for the logger.
- getLevels() - Static method in class br.dev.rplus.cup.log.LoggerLevel
-
Returns a map of all available log levels.
- getLogger() - Static method in class br.dev.rplus.cup.log.Logger
-
Returns the logger instance.
- getMonotonicUlid() - Static method in class br.dev.rplus.cup.utils.UniqueIdentifiers
-
Generates a monotonic ULID, which guarantees that ULIDs are ordered if generated within the same millisecond.
- getQuickUlid() - Static method in class br.dev.rplus.cup.utils.UniqueIdentifiers
-
Generates a fast ULID.
- getRawValue() - Method in class br.dev.rplus.cup.enums.TypedValue
-
Returns the raw value.
- getStrategyClass() - Method in enum class br.dev.rplus.cup.object.export.ExportType
-
Gets the class of the export strategy.
- getSystemProperty(String) - Static method in class br.dev.rplus.cup.environment.Properties
-
Retrieves the value of the specified system property.
- getSystemProperty(String, String) - Static method in class br.dev.rplus.cup.environment.Properties
-
Retrieves the value of the specified system property, or returns the specified default value if the system property is not found.
- getTypedValue(Class<T>) - Method in class br.dev.rplus.cup.enums.TypedValue
-
Returns the value as the given type.
- getULID() - Static method in class br.dev.rplus.cup.utils.UniqueIdentifiers
-
Generates a ULID (Universally Unique Lexicographically Sortable Identifier).
- getUlidFromString(String) - Static method in class br.dev.rplus.cup.utils.UniqueIdentifiers
-
Converts a string into a ULID.
- getUlidInstant(Ulid) - Static method in class br.dev.rplus.cup.utils.UniqueIdentifiers
-
Extracts the timestamp from a ULID and returns it as an
Instant
. - getUUIDFromString(String) - Static method in class br.dev.rplus.cup.utils.UniqueIdentifiers
-
Converts a string into a UUID.
- getUUIDv1() - Static method in class br.dev.rplus.cup.utils.UniqueIdentifiers
-
Generates a time-based UUID (Version 1).
- getUUIDv2(int) - Static method in class br.dev.rplus.cup.utils.UniqueIdentifiers
-
Generates a DCE Security UUID (Version 2).
- getUUIDv3(String) - Static method in class br.dev.rplus.cup.utils.UniqueIdentifiers
-
Generates a name-based UUID (Version 3) using MD5 hashing.
- getUUIDv4() - Static method in class br.dev.rplus.cup.utils.UniqueIdentifiers
-
Generates a random-based UUID (Version 4).
- getUUIDv5(String) - Static method in class br.dev.rplus.cup.utils.UniqueIdentifiers
-
Generates a name-based UUID (Version 5) using SHA-1 hashing.
- getUUIDv6() - Static method in class br.dev.rplus.cup.utils.UniqueIdentifiers
-
Generates a time-ordered UUID (Version 6).
- getUUIDv7() - Static method in class br.dev.rplus.cup.utils.UniqueIdentifiers
-
Generates a Unix Epoch time-based UUID (Version 7).
- GREEN - Enum constant in enum class br.dev.rplus.cup.enums.AnsiColors
-
The ANSI escape codes for dark shade of the color green.
H
- hashCode() - Method in class br.dev.rplus.cup.log.LoggerLevel
- HEAD - Enum constant in enum class br.dev.rplus.cup.net.HttpRequester.HttpMethod
-
HTTP HEAD method.
- headers(Map<String, String>) - Method in class br.dev.rplus.cup.net.HttpRequester
-
Sets or overrides headers for the HTTP request.
- HttpRequester - Class in br.dev.rplus.cup.net
-
Utility class to make HTTP requests.
- HttpRequester.HttpMethod - Enum Class in br.dev.rplus.cup.net
-
HTTP methods supported by the `RequestHttp` class.
I
- info(String, Object...) - Static method in class br.dev.rplus.cup.log.Logger
-
Logs a message at the INFO level.
- INFO - Static variable in class br.dev.rplus.cup.log.LoggerLevel
-
The INFO log level designates informational messages that highlight the progress of the application at fine-grained level.
- init() - Static method in class br.dev.rplus.cup.log.Logger
-
Initializes the logger with default settings.
- init(String) - Static method in class br.dev.rplus.cup.log.Logger
-
Initializes the logger with a custom identifier.
- init(String, String) - Static method in class br.dev.rplus.cup.log.Logger
-
Initializes the logger with a custom identifier and an option to log to a file.
- init(String, String, boolean) - Static method in class br.dev.rplus.cup.log.Logger
-
Initializes the logger with a custom identifier, an option to log to a file, and a specified log level.
- isNullOrBlank(String) - Static method in class br.dev.rplus.cup.utils.StringUtils
-
Checks if a string is null, empty, or only contains whitespace.
- isNullOrEmpty(String) - Static method in class br.dev.rplus.cup.utils.StringUtils
-
Checks if a string is null or empty.
- isNumeric(String) - Static method in class br.dev.rplus.cup.utils.StringUtils
-
Checks if a string contains only digits.
- isValidJson(String) - Static method in class br.dev.rplus.cup.utils.Json
-
Checks if a string is a valid JSON.
- isValidUlid(String) - Static method in class br.dev.rplus.cup.utils.UniqueIdentifiers
-
Checks if a ULID is valid.
- isValidUUID(String) - Static method in class br.dev.rplus.cup.utils.UniqueIdentifiers
-
Checks if a UUID is valid.
J
- join(String, String...) - Static method in class br.dev.rplus.cup.utils.StringUtils
-
Joins an array of strings into a single string with a specified delimiter.
- Json - Class in br.dev.rplus.cup.utils
-
Utility class for working with JSON data.
- JSON - Enum constant in enum class br.dev.rplus.cup.object.export.ExportType
-
JSON export strategy.
- JsonExportStrategy - Class in br.dev.rplus.cup.object.export
-
JSON export strategy.
- JsonExportStrategy() - Constructor for class br.dev.rplus.cup.object.export.JsonExportStrategy
-
Constructs a new JSON export strategy.
- jsonToMap(String) - Static method in class br.dev.rplus.cup.utils.Json
-
Converts a JSON string to a
Map
.
L
- LIGHT_BLACK - Enum constant in enum class br.dev.rplus.cup.enums.AnsiColors
-
The ANSI escape codes for light shade of the color black.
- LIGHT_BLUE - Enum constant in enum class br.dev.rplus.cup.enums.AnsiColors
-
The ANSI escape codes for light shade of the color blue.
- LIGHT_CYAN - Enum constant in enum class br.dev.rplus.cup.enums.AnsiColors
-
The ANSI escape codes for light shade of the color cyan.
- LIGHT_GREEN - Enum constant in enum class br.dev.rplus.cup.enums.AnsiColors
-
The ANSI escape codes for light shade of the color green.
- LIGHT_MAGENTA - Enum constant in enum class br.dev.rplus.cup.enums.AnsiColors
-
The ANSI escape codes for light shade of the color magenta.
- LIGHT_RED - Enum constant in enum class br.dev.rplus.cup.enums.AnsiColors
-
The ANSI escape codes for light shade of the color red.
- LIGHT_WHITE - Enum constant in enum class br.dev.rplus.cup.enums.AnsiColors
-
The ANSI escape codes for light shade of the color white.
- LIGHT_YELLOW - Enum constant in enum class br.dev.rplus.cup.enums.AnsiColors
-
The ANSI escape codes for light shade of the color yellow.
- load(String) - Static method in class br.dev.rplus.cup.environment.Properties
-
Loads properties from a file at the specified path in the file system.
- load(String, boolean) - Static method in class br.dev.rplus.cup.environment.Properties
-
Loads properties from a file at the specified path.
- logFile(boolean) - Static method in class br.dev.rplus.cup.log.Logger
-
Configures the logger to write logs to a file.
- Logger - Class in br.dev.rplus.cup.log
-
LoggerCup is an abstract class that facilitates logging management for Java applications.
- LoggerFormatter - Class in br.dev.rplus.cup.log
-
LoggerFormatter is a custom formatter for log messages, designed to format log output with timestamp, log level, source class, method name, and thread name.
- LoggerFormatter() - Constructor for class br.dev.rplus.cup.log.LoggerFormatter
-
Default constructor.
- LoggerLevel - Class in br.dev.rplus.cup.log
-
LevelCup is a custom implementation of the
Level
class, providing additional log levels beyond the standard levels provided by the Java logging framework. - LoggerLevel(String, int) - Constructor for class br.dev.rplus.cup.log.LoggerLevel
-
Constructs a new instance of LevelCup with the specified name and value.
M
- MAGENTA - Enum constant in enum class br.dev.rplus.cup.enums.AnsiColors
-
The ANSI escape codes for dark shade of the color magenta.
- mapToJson(Map<String, Object>) - Static method in class br.dev.rplus.cup.utils.Json
-
Converts a
Map
to a JSON string. - method(HttpRequester.HttpMethod) - Method in class br.dev.rplus.cup.net.HttpRequester
-
Sets the HTTP method for the request.
N
- notice(String, Object...) - Static method in class br.dev.rplus.cup.log.Logger
-
Logs a message at the NOTICE level.
- NOTICE - Static variable in class br.dev.rplus.cup.log.LoggerLevel
-
The NOTICE log level designates informational messages that highlight the progress of the application at coarse-grained level.
O
- ObjectCloser - Class in br.dev.rplus.cup.object
-
Utility class to close an object and its fields.
- ObjectCloser() - Constructor for class br.dev.rplus.cup.object.ObjectCloser
-
Default constructor.
- OPTIONS - Enum constant in enum class br.dev.rplus.cup.net.HttpRequester.HttpMethod
-
HTTP OPTIONS method.
P
- pad(String, int, char, boolean) - Static method in class br.dev.rplus.cup.utils.StringUtils
-
Pads a string to a specified length with a specified character.
- parse(String) - Static method in class br.dev.rplus.cup.log.LoggerLevel
-
Parses the given name and returns the corresponding
LoggerLevel
instance. - parse(String) - Static method in class br.dev.rplus.cup.utils.DateFormatter
-
Parses a given date string into a Date object.
- parseJsonArray(String) - Static method in class br.dev.rplus.cup.utils.Json
-
Converts a JSON string to a
JSONArray
. - parseJsonObject(String) - Static method in class br.dev.rplus.cup.utils.Json
-
Converts a JSON string to a
JSONObject
. - PATCH - Enum constant in enum class br.dev.rplus.cup.net.HttpRequester.HttpMethod
-
HTTP PATCH method.
- POST - Enum constant in enum class br.dev.rplus.cup.net.HttpRequester.HttpMethod
-
HTTP POST method.
- prettyPrintJson(String) - Static method in class br.dev.rplus.cup.utils.Json
-
Pretty prints a JSON string with indentation.
- Properties - Class in br.dev.rplus.cup.environment
-
The
Properties
class provides utility methods to load and access configuration properties from a file, either from the file system or the application's resources. - PUT - Enum constant in enum class br.dev.rplus.cup.net.HttpRequester.HttpMethod
-
HTTP PUT method.
R
- readTimeout(int) - Method in class br.dev.rplus.cup.net.HttpRequester
-
Sets the read timeout for the request.
- RED - Enum constant in enum class br.dev.rplus.cup.enums.AnsiColors
-
The ANSI escape codes for dark shade of the color red.
- removeAccentsAndSpecialCharacters(String) - Static method in class br.dev.rplus.cup.utils.StringUtils
-
Removes accents and special characters from a string.
- RESET - Enum constant in enum class br.dev.rplus.cup.enums.AnsiColors
-
The ANSI escape code for resetting the text color to the default color.
- reverse(String) - Static method in class br.dev.rplus.cup.utils.StringUtils
-
Reverses the characters in a string.
S
- send() - Method in class br.dev.rplus.cup.net.HttpRequester
-
Sends the HTTP request and retrieves the response.
- sendRaw() - Method in class br.dev.rplus.cup.net.HttpRequester
-
Sends the HTTP request and retrieves the response.
- setApplication(String) - Static method in class br.dev.rplus.cup.log.Logger
-
Sets the application identifier.
- setExportStrategy(ExportStrategy) - Method in class br.dev.rplus.cup.object.export.ExportData
-
Sets the export strategy.
- setLevel(String) - Static method in class br.dev.rplus.cup.log.Logger
-
Sets the log level for the logger using a string value.
- setLevel(Level) - Static method in class br.dev.rplus.cup.log.Logger
-
Sets the log level for the logger.
- StringUtils - Class in br.dev.rplus.cup.utils
-
Utility class for common operations on strings, including manipulation, conversion, and validation.
T
- timestampFormat(Date) - Static method in class br.dev.rplus.cup.utils.DateFormatter
-
Generates a formatted timestamp from a given date.
- toCamelCase(String) - Static method in class br.dev.rplus.cup.utils.StringUtils
-
Converts a string to camel case.
- toJson(Object) - Static method in class br.dev.rplus.cup.utils.Json
-
Converts a Java object to a JSON string.
- toSnakeCase(String) - Static method in class br.dev.rplus.cup.utils.StringUtils
-
Converts a string to snake case.
- toStr() - Method in class br.dev.rplus.cup.net.UrlBuilder
-
Builds the URL and returns it as a string.
- toTitleCase(String) - Static method in class br.dev.rplus.cup.utils.StringUtils
-
Converts a string to title case.
- toURI() - Method in class br.dev.rplus.cup.net.UrlBuilder
-
Builds the URL and returns it as a URI.
- trace(String, Object...) - Static method in class br.dev.rplus.cup.log.Logger
-
Logs a message at the TRACE level.
- TRACE - Static variable in class br.dev.rplus.cup.log.LoggerLevel
-
The TRACE log level designates finer-grained informational events than the DEBUG.
- trim(String) - Static method in class br.dev.rplus.cup.utils.StringUtils
-
Trims whitespace from the beginning and end of a string.
- TypedValue - Class in br.dev.rplus.cup.enums
-
Class to store typed values.
- TypedValue(Object) - Constructor for class br.dev.rplus.cup.enums.TypedValue
-
Constructor.
U
- UniqueIdentifiers - Class in br.dev.rplus.cup.utils
-
The
UniqueIdentifiers
class provides a set of static methods for generating various types of unique identifiers, including UUIDs (Versions 1 to 7) and ULIDs. - url(String) - Method in class br.dev.rplus.cup.net.HttpRequester
-
Defines the URL for the HTTP request.
- url(String) - Method in class br.dev.rplus.cup.net.UrlBuilder
-
Defines the URL for the URLBuilder.
- url(URI) - Method in class br.dev.rplus.cup.net.HttpRequester
-
Defines the URL for the HTTP request.
- UrlBuilder - Class in br.dev.rplus.cup.net
-
Utility class for building URLs.
V
- valueOf(String) - Static method in enum class br.dev.rplus.cup.enums.AnsiColors
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class br.dev.rplus.cup.net.HttpRequester.HttpMethod
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class br.dev.rplus.cup.object.export.ExportType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class br.dev.rplus.cup.enums.AnsiColors
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class br.dev.rplus.cup.net.HttpRequester.HttpMethod
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class br.dev.rplus.cup.object.export.ExportType
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- warn(String, Object...) - Static method in class br.dev.rplus.cup.log.Logger
-
Logs a message at the WARNING level.
- WARN - Static variable in class br.dev.rplus.cup.log.LoggerLevel
-
The WARN log level designates potentially harmful situations.
- WHITE - Enum constant in enum class br.dev.rplus.cup.enums.AnsiColors
-
The ANSI escape codes for dark shade of the color white.
X
- XML - Enum constant in enum class br.dev.rplus.cup.object.export.ExportType
-
XML export strategy.
- XmlExportStrategy - Class in br.dev.rplus.cup.object.export
-
XML export strategy.
- XmlExportStrategy() - Constructor for class br.dev.rplus.cup.object.export.XmlExportStrategy
-
Constructs a new XML export strategy.
Y
- YELLOW - Enum constant in enum class br.dev.rplus.cup.enums.AnsiColors
-
The ANSI escape codes for dark shade of the color yellow.
All Classes and Interfaces|All Packages|Serialized Form