Index
All Classes and Interfaces|All Packages
A
- addParameter(String, Object) - Method in class dev.rafandoo.cup.request.UrlBuilder
-
Adds a single query parameter.
- addParameters(Map<String, Object>) - Method in class dev.rafandoo.cup.request.UrlBuilder
-
Adds multiple query parameters.
- AnsiColors - Enum Class in dev.rafandoo.cup.enums
-
AnsiColors is an enumeration that defines a set of ANSI escape codes for text color formatting.
- as(Class<T>) - Method in class dev.rafandoo.cup.config.Config
-
Converts the entire configuration data to an object of the specified type.
- as(Class<T>, String) - Method in class dev.rafandoo.cup.config.Config
-
Converts a specific configuration value to an object of the specified type.
- asBoolean() - Method in class dev.rafandoo.cup.config.Value
-
Converts the value to a
boolean
. - asBoolean() - Method in class dev.rafandoo.cup.enums.TypedValue
-
Returns the value as a boolean.
- asDouble() - Method in class dev.rafandoo.cup.config.Value
-
Converts the value to a
double
. - asInt() - Method in class dev.rafandoo.cup.config.Value
-
Converts the value to an
int
. - asInteger() - Method in class dev.rafandoo.cup.enums.TypedValue
-
Returns the value as an integer.
- asList() - Method in class dev.rafandoo.cup.config.Value
-
Converts the value to a
List
ofValue
elements. - asMap() - Method in class dev.rafandoo.cup.config.Value
- asOrNull(Class<T>) - Method in class dev.rafandoo.cup.config.Config
-
Converts the entire configuration data to an object of the specified type, returning null if conversion fails.
- asOrNull(Class<T>, String) - Method in class dev.rafandoo.cup.config.Config
-
Converts a specific configuration value to an object of the specified type, returning null if conversion fails.
- asString() - Method in class dev.rafandoo.cup.config.Value
-
Converts the value to a
String
. - asString() - Method in class dev.rafandoo.cup.enums.TypedValue
-
Returns the value as a string.
B
- BLACK - Enum constant in enum class dev.rafandoo.cup.enums.AnsiColors
-
The ANSI escape codes for dark shade of the color black.
- BLUE - Enum constant in enum class dev.rafandoo.cup.enums.AnsiColors
-
The ANSI escape codes for dark shade of the color blue.
- body(String) - Method in class dev.rafandoo.cup.request.HttpRequester
-
Sets the body for the HTTP request.
- builder() - Static method in class dev.rafandoo.cup.request.HttpRequester
-
Creates a new instance of the `RequestHttp` class.
- builder() - Static method in class dev.rafandoo.cup.request.UrlBuilder
-
Creates a new instance of the
UrlBuilder
.
C
- capitalize(String) - Static method in class dev.rafandoo.cup.utils.StringUtils
-
Capitalizes the first letter of a string.
- CHROME_OS - Enum constant in enum class dev.rafandoo.cup.enums.OperatingSystemEnum
-
Represents the Chrome OS operating system.
- ClassFinder - Class in dev.rafandoo.cup.reflection
-
Utility class for finding classes in a package.
- ClassFinder() - Constructor for class dev.rafandoo.cup.reflection.ClassFinder
- close(Object) - Static method in class dev.rafandoo.cup.object.ObjectCloser
-
Closes an object and its fields.
- close(Object...) - Static method in class dev.rafandoo.cup.object.ObjectCloser
-
Closes an array of objects and their fields.
- Config - Class in dev.rafandoo.cup.config
-
Represents a hierarchical configuration loaded from an external source (YAML,
.properties
, etc.). - Config(Map<String, Object>) - Constructor for class dev.rafandoo.cup.config.Config
-
Creates a new
Config
instance. - ConfigLoader - Class in dev.rafandoo.cup.config
-
Utility class that detects the file type (YAML or
.properties
), loads the data through the properConfigSource
, and returns a ready-to-useConfig
instance. - ConfigLoader() - Constructor for class dev.rafandoo.cup.config.ConfigLoader
- ConfigSource - Interface in dev.rafandoo.cup.config.source
-
Functional interface representing a configuration source (e.g.
- configureMapper(DeserializationFeature, boolean) - Method in class dev.rafandoo.cup.config.Config
-
Configures a specific
DeserializationFeature
on the internal ObjectMapper. - configureMapper(Map<DeserializationFeature, Boolean>) - Method in class dev.rafandoo.cup.config.Config
-
Configures multiple
DeserializationFeature
s on the internal ObjectMapper. - connectionTimeout(int) - Method in class dev.rafandoo.cup.request.HttpRequester
-
Sets the connection timeout for the request.
- contains(String) - Static method in class dev.rafandoo.cup.config.environment.Properties
-
Checks if the specified property exists in the loaded properties.
- convertUlidToUUID(Ulid) - Static method in class dev.rafandoo.cup.utils.UniqueIdentifiers
-
Converts a ULID to a UUID (RFC-4122 format).
- convertUlidToUUIDv4(Ulid) - Static method in class dev.rafandoo.cup.utils.UniqueIdentifiers
-
Converts a ULID to a Version 4 UUID.
- countOccurrences(String, String) - Static method in class dev.rafandoo.cup.utils.StringUtils
-
Counts the number of occurrences of a substring in a string.
- CSV - Enum constant in enum class dev.rafandoo.cup.object.export.ExportType
-
CSV export strategy.
- CsvExportStrategy - Class in dev.rafandoo.cup.object.export.strategies
-
CSV export strategy.
- CsvExportStrategy() - Constructor for class dev.rafandoo.cup.object.export.strategies.CsvExportStrategy
- currentTimestamp() - Static method in class dev.rafandoo.cup.utils.DateUtils
-
Gets the current Unix timestamp (in seconds).
- CYAN - Enum constant in enum class dev.rafandoo.cup.enums.AnsiColors
-
The ANSI escape codes for dark shade of the color cyan.
D
- DateUtils - Class in dev.rafandoo.cup.utils
-
Utility class for date and time operations.
- DateUtils() - Constructor for class dev.rafandoo.cup.utils.DateUtils
-
Creates a DateUtils instance with the default format "yyyy-MM-dd".
- DateUtils(String) - Constructor for class dev.rafandoo.cup.utils.DateUtils
-
Creates a DateUtils instance with a custom format.
- delete() - Method in class dev.rafandoo.cup.request.HttpRequester
-
Executes an HTTP DELETE request.
- describe() - Static method in class dev.rafandoo.cup.os.OperatingSystem
-
Returns a formatted string describing the current OS name, architecture, and version.
- dev.rafandoo.cup.config - package dev.rafandoo.cup.config
- dev.rafandoo.cup.config.environment - package dev.rafandoo.cup.config.environment
- dev.rafandoo.cup.config.source - package dev.rafandoo.cup.config.source
- dev.rafandoo.cup.enums - package dev.rafandoo.cup.enums
- dev.rafandoo.cup.object - package dev.rafandoo.cup.object
- dev.rafandoo.cup.object.export - package dev.rafandoo.cup.object.export
- dev.rafandoo.cup.object.export.strategies - package dev.rafandoo.cup.object.export.strategies
- dev.rafandoo.cup.os - package dev.rafandoo.cup.os
- dev.rafandoo.cup.reflection - package dev.rafandoo.cup.reflection
- dev.rafandoo.cup.request - package dev.rafandoo.cup.request
- dev.rafandoo.cup.utils - package dev.rafandoo.cup.utils
E
- export(Object) - Method in class dev.rafandoo.cup.object.export.ExportData
-
Exports the given object using one of the available strategies to a given file.
- export(Object) - Method in interface dev.rafandoo.cup.object.export.ExportStrategy
-
Export object to string.
- export(Object) - Method in class dev.rafandoo.cup.object.export.strategies.CsvExportStrategy
- export(Object) - Method in class dev.rafandoo.cup.object.export.strategies.JsonExportStrategy
- export(Object) - Method in class dev.rafandoo.cup.object.export.strategies.XmlExportStrategy
- export(Object, File) - Method in interface dev.rafandoo.cup.object.export.ExportStrategy
-
Export object to file.
- export(Object, File) - Method in class dev.rafandoo.cup.object.export.strategies.CsvExportStrategy
- export(Object, File) - Method in class dev.rafandoo.cup.object.export.strategies.JsonExportStrategy
- export(Object, File) - Method in class dev.rafandoo.cup.object.export.strategies.XmlExportStrategy
- ExportData - Class in dev.rafandoo.cup.object.export
-
Utility class to export data to a file from an object.
- ExportData(ExportStrategy) - Constructor for class dev.rafandoo.cup.object.export.ExportData
-
Constructor with export strategy.
- ExportData(ExportStrategy, String) - Constructor for class dev.rafandoo.cup.object.export.ExportData
-
Constructor with export strategy and filename.
- ExportData(ExportStrategy, String, String) - Constructor for class dev.rafandoo.cup.object.export.ExportData
-
Constructor with export strategy, filename and path.
- ExportStrategy - Interface in dev.rafandoo.cup.object.export
-
Interface for Export strategy.
- exportToString(Object) - Method in class dev.rafandoo.cup.object.export.ExportData
-
Exports the given object using one of the available strategies to a String.
- ExportType - Enum Class in dev.rafandoo.cup.object.export
-
Enum for export types (export strategies).
F
- findClasses(File, String) - Static method in class dev.rafandoo.cup.reflection.ClassFinder
-
Recursively finds all classes in the specified directory.
- findImplementations(Class<T>, String) - Static method in class dev.rafandoo.cup.reflection.InterfaceFinder
-
Finds all classes that implement the specified interface in the specified package.
- followRedirects(boolean) - Method in class dev.rafandoo.cup.request.HttpRequester
-
Sets whether to follow redirects for the request.
- format(LocalDate) - Method in class dev.rafandoo.cup.utils.DateUtils
-
Formats a given LocalDate object.
- format(LocalDateTime, String) - Static method in class dev.rafandoo.cup.utils.DateUtils
-
Formats a LocalDateTime object into a string.
- format(Date) - Method in class dev.rafandoo.cup.utils.DateUtils
-
Formats a given Date object.
- fragment(String) - Method in class dev.rafandoo.cup.request.UrlBuilder
-
Defines a URL fragment (the part after '#').
- from(InputStream, ConfigSource) - Static method in class dev.rafandoo.cup.config.ConfigLoader
-
Loads configuration data from an
InputStream
. - from(InputStream, String) - Static method in class dev.rafandoo.cup.config.ConfigLoader
-
Loads configuration data from an
InputStream
, inferring the format from the file name. - from(String) - Static method in class dev.rafandoo.cup.config.ConfigLoader
-
Loads a configuration file from a string path.
- from(String, ConfigSource) - Static method in class dev.rafandoo.cup.config.ConfigLoader
-
Loads a configuration file from a string path using a specific
ConfigSource
. - from(Path) - Static method in class dev.rafandoo.cup.config.ConfigLoader
-
Loads a configuration file from a
Path
. - from(Path, ConfigSource) - Static method in class dev.rafandoo.cup.config.ConfigLoader
-
Loads a configuration file from a
Path
using a specificConfigSource
. - fromTimestamp(String) - Static method in class dev.rafandoo.cup.utils.DateUtils
-
Converts a timestamp (in seconds) to a Date object.
G
- get() - Method in enum class dev.rafandoo.cup.enums.OperatingSystemEnum
-
Returns the
TypedValue
associated with this enum constant. - get() - Method in class dev.rafandoo.cup.request.HttpRequester
-
Executes an HTTP GET request.
- get(String) - Method in class dev.rafandoo.cup.config.Config
-
Retrieves a value using a dot-notation key.
- get(String) - Static method in class dev.rafandoo.cup.config.environment.Properties
-
Retrieves the value of the specified property.
- get(String, String) - Static method in class dev.rafandoo.cup.config.environment.Properties
-
Retrieves the value of the specified property, or returns the specified default value if the property is not found.
- getAll() - Static method in class dev.rafandoo.cup.config.environment.Properties
-
Retrieves all loaded properties.
- getBodyAsBytes() - Method in class dev.rafandoo.cup.request.HttpResponse
-
Reads the entire InputStream into a byte array.
- getBodyAsString() - Method in class dev.rafandoo.cup.request.HttpResponse
-
Returns the response body as a UTF-8 string.
- getBodyAsString(String) - Method in class dev.rafandoo.cup.request.HttpResponse
-
Returns the response body as a string using the specified charset.
- getClasses(String) - Static method in class dev.rafandoo.cup.reflection.ClassFinder
-
Finds all classes in the specified package.
- getColorCode() - Method in enum class dev.rafandoo.cup.enums.AnsiColors
-
Gets the ANSI color code associated with this enum constant.
- getContentType() - Method in interface dev.rafandoo.cup.object.export.ExportStrategy
-
Get the content type of the file.
- getContentType() - Method in class dev.rafandoo.cup.object.export.strategies.CsvExportStrategy
- getContentType() - Method in class dev.rafandoo.cup.object.export.strategies.JsonExportStrategy
- getContentType() - Method in class dev.rafandoo.cup.object.export.strategies.XmlExportStrategy
- getExportStrategy() - Method in class dev.rafandoo.cup.object.export.ExportData
- getExtension() - Method in interface dev.rafandoo.cup.object.export.ExportStrategy
-
Get the extension of the file.
- getExtension() - Method in class dev.rafandoo.cup.object.export.strategies.CsvExportStrategy
- getExtension() - Method in class dev.rafandoo.cup.object.export.strategies.JsonExportStrategy
- getExtension() - Method in class dev.rafandoo.cup.object.export.strategies.XmlExportStrategy
- getFilename() - Method in class dev.rafandoo.cup.object.export.ExportData
- getHashUlid(long, String) - Static method in class dev.rafandoo.cup.utils.UniqueIdentifiers
-
Generates a hash-based ULID using the specified timestamp and name.
- getHeader(String) - Method in class dev.rafandoo.cup.request.HttpResponse
-
Returns the first value of a specific HTTP header.
- getMonotonicUlid() - Static method in class dev.rafandoo.cup.utils.UniqueIdentifiers
-
Generates a monotonic ULID, which guarantees that ULIDs are ordered if generated within the same millisecond.
- getOsArch() - Static method in class dev.rafandoo.cup.os.OperatingSystem
-
Returns the architecture of the current operating system.
- getOsName() - Static method in class dev.rafandoo.cup.os.OperatingSystem
-
Returns the name of the current operating system.
- getOsVersion() - Static method in class dev.rafandoo.cup.os.OperatingSystem
-
Returns the version of the current operating system.
- getQuickUlid() - Static method in class dev.rafandoo.cup.utils.UniqueIdentifiers
-
Generates a fast ULID.
- getRawValue() - Method in class dev.rafandoo.cup.enums.TypedValue
-
Returns the raw value.
- getTypedValue(Class<T>) - Method in class dev.rafandoo.cup.enums.TypedValue
-
Returns the value as the given type.
- getULID() - Static method in class dev.rafandoo.cup.utils.UniqueIdentifiers
-
Generates a ULID (Universally Unique Lexicographically Sortable Identifier).
- getUlidFromString(String) - Static method in class dev.rafandoo.cup.utils.UniqueIdentifiers
-
Converts a string into a ULID.
- getUlidInstant(Ulid) - Static method in class dev.rafandoo.cup.utils.UniqueIdentifiers
-
Extracts the timestamp from a ULID and returns it as an
Instant
. - getUUIDFromString(String) - Static method in class dev.rafandoo.cup.utils.UniqueIdentifiers
-
Converts a string into a UUID.
- getUUIDv1() - Static method in class dev.rafandoo.cup.utils.UniqueIdentifiers
-
Generates a time-based UUID (Version 1).
- getUUIDv2(int) - Static method in class dev.rafandoo.cup.utils.UniqueIdentifiers
-
Generates a DCE Security UUID (Version 2).
- getUUIDv3(String) - Static method in class dev.rafandoo.cup.utils.UniqueIdentifiers
-
Generates a name-based UUID (Version 3) using MD5 hashing.
- getUUIDv4() - Static method in class dev.rafandoo.cup.utils.UniqueIdentifiers
-
Generates a random-based UUID (Version 4).
- getUUIDv5(String) - Static method in class dev.rafandoo.cup.utils.UniqueIdentifiers
-
Generates a name-based UUID (Version 5) using SHA-1 hashing.
- getUUIDv6() - Static method in class dev.rafandoo.cup.utils.UniqueIdentifiers
-
Generates a time-ordered UUID (Version 6).
- getUUIDv7() - Static method in class dev.rafandoo.cup.utils.UniqueIdentifiers
-
Generates a Unix Epoch time-based UUID (Version 7).
- GREEN - Enum constant in enum class dev.rafandoo.cup.enums.AnsiColors
-
The ANSI escape codes for dark shade of the color green.
H
- head() - Method in class dev.rafandoo.cup.request.HttpRequester
-
Executes an HTTP HEAD request.
- header(String, Object) - Method in class dev.rafandoo.cup.request.HttpRequester
-
Sets a header for the HTTP request.
- headers(Map<String, Object>) - Method in class dev.rafandoo.cup.request.HttpRequester
-
Sets headers for the HTTP request.
- HttpRequester - Class in dev.rafandoo.cup.request
-
Utility class to make HTTP requests.
- HttpResponse - Class in dev.rafandoo.cup.request
-
Represents an HTTP response returned from an
HttpRequester
. - HttpResponse(int, InputStream, Map<String, List<String>>, long) - Constructor for class dev.rafandoo.cup.request.HttpResponse
-
Constructs a new HttpResponse object.
I
- InterfaceFinder - Class in dev.rafandoo.cup.reflection
-
Utility class for finding classes that implement a specific interface.
- InterfaceFinder() - Constructor for class dev.rafandoo.cup.reflection.InterfaceFinder
- isArm() - Static method in class dev.rafandoo.cup.os.OperatingSystem
-
Checks if the system architecture is ARM or AARCH.
- isChromeOs() - Static method in class dev.rafandoo.cup.os.OperatingSystem
-
Checks if the current OS is Chrome OS.
- isLinux() - Static method in class dev.rafandoo.cup.os.OperatingSystem
-
Checks if the current OS is Linux.
- isMac() - Static method in class dev.rafandoo.cup.os.OperatingSystem
-
Checks if the current OS is macOS.
- isNull() - Method in class dev.rafandoo.cup.config.Value
-
Checks if the underlying value is
null
. - isNullOrBlank(String) - Static method in class dev.rafandoo.cup.utils.StringUtils
-
Checks if a string is null, empty, or only contains whitespace.
- isNullOrEmpty(String) - Static method in class dev.rafandoo.cup.utils.StringUtils
-
Checks if a string is null or empty.
- isNumeric(String) - Static method in class dev.rafandoo.cup.utils.StringUtils
-
Checks if a string contains only digits.
- isUnix() - Static method in class dev.rafandoo.cup.os.OperatingSystem
-
Checks if the current OS is a Unix-based system (Linux or macOS).
- isValidJson(String) - Static method in class dev.rafandoo.cup.utils.Json
-
Checks if a string is a valid JSON.
- isValidUlid(String) - Static method in class dev.rafandoo.cup.utils.UniqueIdentifiers
-
Checks if a ULID is valid.
- isValidUUID(String) - Static method in class dev.rafandoo.cup.utils.UniqueIdentifiers
-
Checks if a UUID is valid.
- isWindows() - Static method in class dev.rafandoo.cup.os.OperatingSystem
-
Checks if the current OS is Windows.
- isWindowsSubsystemForLinux() - Static method in class dev.rafandoo.cup.os.OperatingSystem
-
Checks if the current environment is WSL (Windows Subsystem for Linux).
- isX64() - Static method in class dev.rafandoo.cup.os.OperatingSystem
-
Checks if the system architecture is 64-bit.
- isX86() - Static method in class dev.rafandoo.cup.os.OperatingSystem
-
Checks if the system architecture is 32-bit.
J
- join(String, String...) - Static method in class dev.rafandoo.cup.utils.StringUtils
-
Joins an array of strings into a single string with a specified delimiter.
- Json - Class in dev.rafandoo.cup.utils
-
Utility class for working with JSON data.
- Json() - Constructor for class dev.rafandoo.cup.utils.Json
- JSON - Enum constant in enum class dev.rafandoo.cup.object.export.ExportType
-
JSON export strategy.
- JsonExportStrategy - Class in dev.rafandoo.cup.object.export.strategies
-
JSON export strategy.
- JsonExportStrategy() - Constructor for class dev.rafandoo.cup.object.export.strategies.JsonExportStrategy
- jsonToMap(String) - Static method in class dev.rafandoo.cup.utils.Json
-
Converts a JSON string to a
Map
.
L
- LIGHT_BLACK - Enum constant in enum class dev.rafandoo.cup.enums.AnsiColors
-
The ANSI escape codes for light shade of the color black.
- LIGHT_BLUE - Enum constant in enum class dev.rafandoo.cup.enums.AnsiColors
-
The ANSI escape codes for light shade of the color blue.
- LIGHT_CYAN - Enum constant in enum class dev.rafandoo.cup.enums.AnsiColors
-
The ANSI escape codes for light shade of the color cyan.
- LIGHT_GREEN - Enum constant in enum class dev.rafandoo.cup.enums.AnsiColors
-
The ANSI escape codes for light shade of the color green.
- LIGHT_MAGENTA - Enum constant in enum class dev.rafandoo.cup.enums.AnsiColors
-
The ANSI escape codes for light shade of the color magenta.
- LIGHT_RED - Enum constant in enum class dev.rafandoo.cup.enums.AnsiColors
-
The ANSI escape codes for light shade of the color red.
- LIGHT_WHITE - Enum constant in enum class dev.rafandoo.cup.enums.AnsiColors
-
The ANSI escape codes for light shade of the color white.
- LIGHT_YELLOW - Enum constant in enum class dev.rafandoo.cup.enums.AnsiColors
-
The ANSI escape codes for light shade of the color yellow.
- LINUX - Enum constant in enum class dev.rafandoo.cup.enums.OperatingSystemEnum
-
Represents the Linux operating system.
- load(InputStream) - Method in interface dev.rafandoo.cup.config.source.ConfigSource
-
Loads configuration data and returns it as a
Map
. - load(InputStream) - Method in class dev.rafandoo.cup.config.source.PropertiesConfigSource
- load(InputStream) - Method in class dev.rafandoo.cup.config.source.YamlConfigSource
- load(String) - Static method in class dev.rafandoo.cup.config.environment.Properties
-
Loads properties from a file at the specified path in the file system.
- load(String, boolean) - Static method in class dev.rafandoo.cup.config.environment.Properties
-
Loads properties from a file at the specified path.
M
- MAC - Enum constant in enum class dev.rafandoo.cup.enums.OperatingSystemEnum
-
Represents the macOS operating system.
- MAGENTA - Enum constant in enum class dev.rafandoo.cup.enums.AnsiColors
-
The ANSI escape codes for dark shade of the color magenta.
- mapToJson(Map<String, Object>) - Static method in class dev.rafandoo.cup.utils.Json
-
Converts a
Map
to a JSON string. - multipartBody(Map<String, Object>, Map<String, File>) - Method in class dev.rafandoo.cup.request.HttpRequester
-
Sets the body for the HTTP request, using multipart/form-data.
- multipartBodyFiles(Map<String, File>) - Method in class dev.rafandoo.cup.request.HttpRequester
-
Sets the body for the HTTP request, using multipart/form-data.
- multipartBodyParts(Map<String, Object>) - Method in class dev.rafandoo.cup.request.HttpRequester
-
Sets the body for the HTTP request, using multipart/form-data.
N
O
- ObjectCloser - Class in dev.rafandoo.cup.object
-
Utility class to close an object and its fields.
- ObjectCloser() - Constructor for class dev.rafandoo.cup.object.ObjectCloser
-
Default constructor.
- OperatingSystem - Class in dev.rafandoo.cup.os
-
Utility class for detecting and interacting with the operating system properties of the host environment.
- OperatingSystem() - Constructor for class dev.rafandoo.cup.os.OperatingSystem
- OperatingSystemEnum - Enum Class in dev.rafandoo.cup.enums
-
Enum representing known operating systems and system properties used for OS detection and system information retrieval.
- options() - Method in class dev.rafandoo.cup.request.HttpRequester
-
Executes an HTTP OPTIONS request.
P
- pad(String, int, char, boolean) - Static method in class dev.rafandoo.cup.utils.StringUtils
-
Pads a string to a specified length with a specified character.
- parse(String) - Method in class dev.rafandoo.cup.utils.DateUtils
-
Parses a date string into a Date object.
- parseJsonArray(String) - Static method in class dev.rafandoo.cup.utils.Json
-
Converts a JSON string to a
JSONArray
. - parseJsonObject(String) - Static method in class dev.rafandoo.cup.utils.Json
-
Converts a JSON string to a
JSONObject
. - Parser - Class in dev.rafandoo.cup.utils
-
Utility class for parsing values to different types.
- Parser() - Constructor for class dev.rafandoo.cup.utils.Parser
- patch() - Method in class dev.rafandoo.cup.request.HttpRequester
-
Executes an HTTP PATCH request.
- path(String) - Method in class dev.rafandoo.cup.request.UrlBuilder
-
Defines the path (endpoint) to append to the URL.
- port(int) - Method in class dev.rafandoo.cup.request.UrlBuilder
-
Defines the port number to use.
- post() - Method in class dev.rafandoo.cup.request.HttpRequester
-
Executes an HTTP POST request.
- prettyPrintJson(String) - Static method in class dev.rafandoo.cup.utils.Json
-
Pretty prints a JSON string with indentation.
- PROP_OS_ARCH - Enum constant in enum class dev.rafandoo.cup.enums.OperatingSystemEnum
-
System property key for retrieving the OS architecture:
os.arch
. - PROP_OS_NAME - Enum constant in enum class dev.rafandoo.cup.enums.OperatingSystemEnum
-
System property key for retrieving the OS name:
os.name
. - PROP_OS_VERSION - Enum constant in enum class dev.rafandoo.cup.enums.OperatingSystemEnum
-
System property key for retrieving the OS version:
os.version
. - Properties - Class in dev.rafandoo.cup.config.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. - Properties() - Constructor for class dev.rafandoo.cup.config.environment.Properties
- PropertiesConfigSource - Class in dev.rafandoo.cup.config.source
-
ConfigSource
implementation for classic.properties
files. - PropertiesConfigSource() - Constructor for class dev.rafandoo.cup.config.source.PropertiesConfigSource
- protocol(String) - Method in class dev.rafandoo.cup.request.UrlBuilder
-
Defines the protocol (scheme) of the URL, e.g., "http" or "https".
- put() - Method in class dev.rafandoo.cup.request.HttpRequester
-
Executes an HTTP PUT request.
R
- raw() - Method in class dev.rafandoo.cup.config.Value
-
Returns the raw wrapped object.
- readTimeout(int) - Method in class dev.rafandoo.cup.request.HttpRequester
-
Sets the read timeout for the request.
- RED - Enum constant in enum class dev.rafandoo.cup.enums.AnsiColors
-
The ANSI escape codes for dark shade of the color red.
- removeAccentsAndSpecialCharacters(String) - Static method in class dev.rafandoo.cup.utils.StringUtils
-
Removes accents and special characters from a string.
- RESET - Enum constant in enum class dev.rafandoo.cup.enums.AnsiColors
-
The ANSI escape code for resetting the text color to the default color.
- reverse(String) - Static method in class dev.rafandoo.cup.utils.StringUtils
-
Reverses the characters in a string.
S
- setExportStrategy(ExportStrategy) - Method in class dev.rafandoo.cup.object.export.ExportData
- setExportStrategy(ExportType) - Method in class dev.rafandoo.cup.object.export.ExportData
- StringUtils - Class in dev.rafandoo.cup.utils
-
Utility class for common operations on strings, including manipulation, conversion, and validation.
- StringUtils() - Constructor for class dev.rafandoo.cup.utils.StringUtils
T
- toBigDecimal(Object) - Static method in class dev.rafandoo.cup.utils.Parser
-
Parses the provided value to a BigDecimal, if not possible returns
BigDecimal.ZERO
. - toBigInteger(Object) - Static method in class dev.rafandoo.cup.utils.Parser
-
Parses the provided value to a BigInteger, if not possible returns
BigInteger.ZERO
. - toBoolean(Object) - Static method in class dev.rafandoo.cup.utils.Parser
-
Parses the provided value to a boolean, if not possible returns false.
- toCamelCase(String) - Static method in class dev.rafandoo.cup.utils.StringUtils
-
Converts a string to camel case.
- toDouble(Object) - Static method in class dev.rafandoo.cup.utils.Parser
-
Parses the provided value to a double, if not possible returns 0.
- toFloat(Object) - Static method in class dev.rafandoo.cup.utils.Parser
-
Parses the provided value to a float, if not possible returns 0.
- toInt(Object) - Static method in class dev.rafandoo.cup.utils.Parser
-
Parses the provided value to an integer, if not possible returns 0.
- toJson(Object) - Static method in class dev.rafandoo.cup.utils.Json
-
Converts a Java object to a JSON string.
- toLong(Object) - Static method in class dev.rafandoo.cup.utils.Parser
-
Parses the provided value to a long, if not possible returns 0.
- toSnakeCase(String) - Static method in class dev.rafandoo.cup.utils.StringUtils
-
Converts a string to snake case.
- toString() - Method in class dev.rafandoo.cup.request.UrlBuilder
-
Builds and returns the URL as a string.
- toTimestamp(Date) - Static method in class dev.rafandoo.cup.utils.DateUtils
-
Converts a Date object to a Unix timestamp (in seconds).
- toTitleCase(String) - Static method in class dev.rafandoo.cup.utils.StringUtils
-
Converts a string to title case.
- toURI() - Method in class dev.rafandoo.cup.request.UrlBuilder
-
Builds and returns the URL as a
URI
. - trim(String) - Static method in class dev.rafandoo.cup.utils.StringUtils
-
Trims whitespace from the beginning and end of a string.
- tryAs(Class<T>) - Method in class dev.rafandoo.cup.config.Config
-
Converts the entire configuration data to an Optional of the specified type, returning an empty Optional if conversion fails.
- tryAs(Class<T>, String) - Method in class dev.rafandoo.cup.config.Config
-
Converts a specific configuration value to an Optional of the specified type, returning an empty Optional if conversion fails.
- TypedValue - Class in dev.rafandoo.cup.enums
-
Class to store typed values.
- TypedValue() - Constructor for class dev.rafandoo.cup.enums.TypedValue
U
- UniqueIdentifiers - Class in dev.rafandoo.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. - UniqueIdentifiers() - Constructor for class dev.rafandoo.cup.utils.UniqueIdentifiers
- url(String) - Method in class dev.rafandoo.cup.request.HttpRequester
-
Defines the URL for the HTTP request.
- url(String) - Method in class dev.rafandoo.cup.request.UrlBuilder
-
Defines the host or base URL.
- url(URI) - Method in class dev.rafandoo.cup.request.HttpRequester
-
Defines the URL for the HTTP request.
- UrlBuilder - Class in dev.rafandoo.cup.request
-
A flexible and fluent utility class for building URLs dynamically.
V
- Value - Class in dev.rafandoo.cup.config
-
A flexible wrapper class that allows dynamic access and type-safe conversion of an underlying value, typically used for parsed configuration entries.
- Value(Object) - Constructor for class dev.rafandoo.cup.config.Value
-
Constructs a new
Value
wrapping the provided object. - valueOf(String) - Static method in enum class dev.rafandoo.cup.enums.AnsiColors
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.rafandoo.cup.enums.OperatingSystemEnum
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.rafandoo.cup.object.export.ExportType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class dev.rafandoo.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 dev.rafandoo.cup.enums.OperatingSystemEnum
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.rafandoo.cup.object.export.ExportType
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- WHITE - Enum constant in enum class dev.rafandoo.cup.enums.AnsiColors
-
The ANSI escape codes for dark shade of the color white.
- WINDOWS - Enum constant in enum class dev.rafandoo.cup.enums.OperatingSystemEnum
-
Represents the Windows operating system.
X
- XML - Enum constant in enum class dev.rafandoo.cup.object.export.ExportType
-
XML export strategy.
- XmlExportStrategy - Class in dev.rafandoo.cup.object.export.strategies
-
XML export strategy.
- XmlExportStrategy() - Constructor for class dev.rafandoo.cup.object.export.strategies.XmlExportStrategy
Y
- YamlConfigSource - Class in dev.rafandoo.cup.config.source
-
ConfigSource
implementation for YAML files. - YamlConfigSource() - Constructor for class dev.rafandoo.cup.config.source.YamlConfigSource
- YELLOW - Enum constant in enum class dev.rafandoo.cup.enums.AnsiColors
-
The ANSI escape codes for dark shade of the color yellow.
All Classes and Interfaces|All Packages