Index
All Classes and Interfaces|All Packages|Serialized Form
A
- add(E) - Method in class io.github.venkateshamurthy.enums.DynamicEnumSet
-
.
- add(K, V) - Method in class io.github.venkateshamurthy.enums.DynamicEnumMap
-
A fluent method to put key value pair to the map
- allOf(Class<T>) - Static method in class io.github.venkateshamurthy.enums.DynamicEnum
-
allOf DynamicEnum instances for a given class
- App - Class in io.github.venkateshamurthy
-
Hello world!
- App() - Constructor for class io.github.venkateshamurthy.App
C
- CommonRTE - Exception in io.github.venkateshamurthy.enums.examples
-
CommonRTEis a unified runtime exception class that can be used across the project to encapsulate error information in a structured and consistent format. - CommonRTE(String) - Constructor for exception io.github.venkateshamurthy.enums.examples.CommonRTE
-
Constructs a new
CommonRTEwith the specified message. - CommonRTE(String, Throwable) - Constructor for exception io.github.venkateshamurthy.enums.examples.CommonRTE
-
Constructs a new
CommonRTEwith the specified message and cause. - compute(K, BiFunction<? super K, ? super V, ? extends V>) - Method in class io.github.venkateshamurthy.enums.DynamicEnumMap
- computeIfAbsent(K, Function<? super K, ? extends V>) - Method in class io.github.venkateshamurthy.enums.DynamicEnumMap
- computeIfPresent(K, BiFunction<? super K, ? super V, ? extends V>) - Method in class io.github.venkateshamurthy.enums.DynamicEnumMap
D
- detailedMessage(String, Object...) - Method in exception io.github.venkateshamurthy.enums.examples.CommonRTE
-
Sets the detailed message by substituting positional placeholders ("{}") in the given template.
- DynamicEnum<E extends DynamicEnum<E>> - Class in io.github.venkateshamurthy.enums
-
DynamicEnum is a convenience over static
Enumto add dynamically more instances. - DynamicEnum(String) - Constructor for class io.github.venkateshamurthy.enums.DynamicEnum
-
Constructor
- DynamicEnumMap<K extends DynamicEnum<K>,
V> - Class in io.github.venkateshamurthy.enums -
A Map<DynamicEnum<K>, V> along the lines of EnumMap.
- DynamicEnumMap() - Constructor for class io.github.venkateshamurthy.enums.DynamicEnumMap
- dynamicEnumSet(Class<T>) - Static method in class io.github.venkateshamurthy.enums.DynamicEnumSet
-
Creates DynamicEnumSet<T>
- DynamicEnumSet<E extends DynamicEnum<E>> - Class in io.github.venkateshamurthy.enums
-
A Set<DynamicEnum<E> along the lines of EnumSet.
- DynamicEnumSet() - Constructor for class io.github.venkateshamurthy.enums.DynamicEnumSet
F
- FaultCode - Interface in io.github.venkateshamurthy.enums.examples
-
FaultCode is a general interface modeling fault;
- Faults - Class in io.github.venkateshamurthy.enums.examples
-
Faults is an example
DynamicEnumfor experimental purpose that could potentially resolve the serialization issues observed in serializing/de-serializing newer instances (This is an issue with staticEnumwhich i am to trying address) - FILE_LNCK_ERR - Enum constant in enum class io.github.venkateshamurthy.enums.examples.Issues
-
File checksum error with a corresponding
HttpStatus.UNPROCESSABLE_ENTITY. - FILE_LNCK_ERR - Static variable in class io.github.venkateshamurthy.enums.examples.Faults
-
File checksum error with a corresponding
HttpStatus.UNPROCESSABLE_ENTITY. - FILE_LOCKED_ERR - Enum constant in enum class io.github.venkateshamurthy.enums.examples.Issues
-
File already locked fault with a corresponding
HttpStatus.LOCKED. - FILE_LOCKED_ERR - Static variable in class io.github.venkateshamurthy.enums.examples.Faults
-
File already locked fault with a corresponding
HttpStatus.LOCKED. - formatDetailedMessage(MessageFormat, Object...) - Method in exception io.github.venkateshamurthy.enums.examples.CommonRTE
-
Sets the detailed message using a
MessageFormatinstance for advanced message formatting.
G
- getDefaultMapper() - Static method in class io.github.venkateshamurthy.enums.examples.Faults
-
Get a
ObjectMapperwith any configuration - getDefaultMapper(Class<T>) - Static method in class io.github.venkateshamurthy.enums.DynamicEnum
-
Gets the
ObjectMapper - getDescription() - Method in interface io.github.venkateshamurthy.enums.examples.FaultCode
-
Gets description
- getStatus() - Method in interface io.github.venkateshamurthy.enums.examples.FaultCode
-
Gets status
I
- instances - Static variable in class io.github.venkateshamurthy.enums.DynamicEnum
-
Only child classes can access this to make sure avoiding duplicate instances.
- io.github.venkateshamurthy - package io.github.venkateshamurthy
- io.github.venkateshamurthy.enums - package io.github.venkateshamurthy.enums
- io.github.venkateshamurthy.enums.examples - package io.github.venkateshamurthy.enums.examples
- Issues - Enum Class in io.github.venkateshamurthy.enums.examples
-
An enum to model issues - just as an example
L
- logDebug() - Method in exception io.github.venkateshamurthy.enums.examples.CommonRTE
-
Logs this exception at DEBUG level (though implemented as INFO here for visibility), including message, code, timestamp, details, and HTTP status.
- logInfo() - Method in exception io.github.venkateshamurthy.enums.examples.CommonRTE
-
Logs this exception’s summary at INFO level, including error code, timestamp, and details.
M
- main(String[]) - Static method in class io.github.venkateshamurthy.App
-
A simple testing main application
- mappers - Static variable in class io.github.venkateshamurthy.enums.DynamicEnum
-
A map of dynamic enum type to its
ObjectMapper. - merge(K, V, BiFunction<? super V, ? super V, ? extends V>) - Method in class io.github.venkateshamurthy.enums.DynamicEnumMap
N
- name() - Method in class io.github.venkateshamurthy.enums.DynamicEnum
-
Gets the name
- name() - Method in interface io.github.venkateshamurthy.enums.examples.FaultCode
-
name of the fault
- name() - Method in class io.github.venkateshamurthy.enums.examples.Faults
-
Gets the name
- NOW - Static variable in exception io.github.venkateshamurthy.enums.examples.CommonRTE
-
A supplier of current instant.
O
- of(Class<A>, A, B) - Static method in class io.github.venkateshamurthy.enums.DynamicEnumMap
-
Creates a
DynamicEnumMap - of(Class<A>, A, B, A, B) - Static method in class io.github.venkateshamurthy.enums.DynamicEnumMap
-
Creates a
DynamicEnumMap - of(Class<A>, A, B, A, B, A, B) - Static method in class io.github.venkateshamurthy.enums.DynamicEnumMap
-
Creates a
DynamicEnumMap - of(T, T...) - Static method in class io.github.venkateshamurthy.enums.DynamicEnumSet
-
Creates DynamicEnumSet<T>
- ordinal() - Method in class io.github.venkateshamurthy.enums.DynamicEnum
-
Gets the ordinal which might be useful to store instance in an array.
P
- put(K, V) - Method in class io.github.venkateshamurthy.enums.DynamicEnumMap
- putIfAbsent(K, V) - Method in class io.github.venkateshamurthy.enums.DynamicEnumMap
R
- replace(K, V) - Method in class io.github.venkateshamurthy.enums.DynamicEnumMap
- replace(K, V, V) - Method in class io.github.venkateshamurthy.enums.DynamicEnumMap
S
- SERVER_ERR - Enum constant in enum class io.github.venkateshamurthy.enums.examples.Issues
-
Server error with a corresponding
HttpStatus.INTERNAL_SERVER_ERROR - SERVER_ERR - Static variable in class io.github.venkateshamurthy.enums.examples.Faults
-
Server error with a corresponding
HttpStatus.INTERNAL_SERVER_ERROR - setDetailedMessage(String, Map<String, Object>) - Method in exception io.github.venkateshamurthy.enums.examples.CommonRTE
-
Sets the detailed message by replacing named placeholders in the form of
{key}.
T
- toCommonRTE(String) - Method in interface io.github.venkateshamurthy.enums.examples.FaultCode
-
A
CommonRTEgenerator given - toCommonRTE(String, Object...) - Method in interface io.github.venkateshamurthy.enums.examples.FaultCode
-
A
CommonRTEgenerator setting the message ofgetDescription() - toCommonRTE(String, Map<String, Object>) - Method in interface io.github.venkateshamurthy.enums.examples.FaultCode
-
A
CommonRTEwith message set withgetDescription()with following other parameters. - toCommonRTE(MessageFormat, Object...) - Method in interface io.github.venkateshamurthy.enums.examples.FaultCode
-
A
CommonRTEgenerator given
U
- UNKNOWN - Enum constant in enum class io.github.venkateshamurthy.enums.examples.Issues
-
Unknown error.
- UNKNOWN - Static variable in class io.github.venkateshamurthy.enums.examples.Faults
-
Unknown error.
V
- VALIDATION_ERR - Enum constant in enum class io.github.venkateshamurthy.enums.examples.Issues
-
General validation error with a corresponding
HttpStatus.BAD_REQUEST. - VALIDATION_ERR - Static variable in class io.github.venkateshamurthy.enums.examples.Faults
-
General validation error with a corresponding
HttpStatus.BAD_REQUEST. - valueOf(Class<T>, String) - Static method in class io.github.venkateshamurthy.enums.DynamicEnum
-
valueOf provides the dynamic enum corresponding to the name.
- valueOf(Class<T>, String, boolean, Supplier<T>) - Static method in class io.github.venkateshamurthy.enums.DynamicEnum
-
returns an existing
DynamicEnumif not create one using the given supplier. - valueOf(String) - Static method in class io.github.venkateshamurthy.enums.examples.Faults
-
A valueOf function getting the Faults corresponding to name passed
- valueOf(String) - Static method in enum class io.github.venkateshamurthy.enums.examples.Issues
-
Returns the enum constant of this class with the specified name.
- values() - Static method in class io.github.venkateshamurthy.enums.examples.Faults
-
Get an array of Fault instances created in this JVM.
- values() - Static method in enum class io.github.venkateshamurthy.enums.examples.Issues
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values(Class<T>, IntFunction<T[]>) - Static method in class io.github.venkateshamurthy.enums.DynamicEnum
-
values provides DynamicEnum instances array for a given type
All Classes and Interfaces|All Packages|Serialized Form