Index

A B C D E F G H I M N P R S T U V W _ 
All Classes|All Packages|Constant Field Values|Serialized Form

A

action(BeforeEvent<EventContext>, Runnable) - Method in class dev.comfast.experimental.events.EventsManager
 
action(BeforeEvent<EventContext>, Supplier<T>) - Method in class dev.comfast.experimental.events.EventsManager
Calls all listeners before and after action.
actionName - Variable in class dev.comfast.experimental.events.AfterEvent
 
actionName - Variable in class dev.comfast.experimental.events.BeforeEvent
 
actionParams - Variable in class dev.comfast.experimental.events.AfterEvent
 
actionParams - Variable in class dev.comfast.experimental.events.BeforeEvent
 
addError(Throwable, long, long) - Method in class dev.comfast.util.waiter.WaiterStats
 
addListener(String, EventListener<EventContext>) - Method in class dev.comfast.experimental.events.EventsManager
 
after(AfterEvent<EventContext>) - Method in interface dev.comfast.experimental.events.EventListener
Called after event.
AfterEvent<EventContext> - Class in dev.comfast.experimental.events
 
autoRemove - Variable in class dev.comfast.util.TempFile
 

B

before(BeforeEvent<EventContext>) - Method in interface dev.comfast.experimental.events.EventListener
Called before event.
BeforeEvent<EventContext> - Class in dev.comfast.experimental.events
Event that is called before action.
BeforeEvent(EventContext, String, Object...) - Constructor for class dev.comfast.experimental.events.BeforeEvent
 

C

ConfigApi - Class in dev.comfast.experimental.config
 
ConfigApi() - Constructor for class dev.comfast.experimental.config.ConfigApi
 
ConfigReader - Class in dev.comfast.experimental.config
Read config from system properties / appConfig / referenceConfig
ConfigReader() - Constructor for class dev.comfast.experimental.config.ConfigReader
 
context - Variable in class dev.comfast.experimental.events.AfterEvent
 
context - Variable in class dev.comfast.experimental.events.BeforeEvent
 

D

description - Variable in class dev.comfast.util.waiter.WaiterConfig
 
dev.comfast.experimental.config - package dev.comfast.experimental.config
 
dev.comfast.experimental.events - package dev.comfast.experimental.events
 
dev.comfast.rgx - package dev.comfast.rgx
 
dev.comfast.util - package dev.comfast.util
 
dev.comfast.util.time - package dev.comfast.util.time
 
dev.comfast.util.waiter - package dev.comfast.util.waiter
 

E

endTimeNs - Variable in class dev.comfast.util.time.StopwatchTime
 
ERR_MSG_MAX_LENGTH - Static variable in class dev.comfast.rgx.RgxMatch
 
error - Variable in class dev.comfast.experimental.events.AfterEvent
 
ErrorKit - Class in dev.comfast.util
ErrorKit is a set of useful functions for error handling.
ErrorKit() - Constructor for class dev.comfast.util.ErrorKit
 
EventListener<EventContext> - Interface in dev.comfast.experimental.events
Event listener interface.
EventsApi - Class in dev.comfast.experimental.events
Api for events.
EventsApi() - Constructor for class dev.comfast.experimental.events.EventsApi
 
EventsManager<EventContext> - Class in dev.comfast.experimental.events
Manager for events.
EventStatus - Enum Class in dev.comfast.experimental.events
 

F

failed(Throwable) - Method in class dev.comfast.experimental.events.BeforeEvent
Creates FAILED AfterEvent with given error.
FAILED - Enum constant in enum class dev.comfast.experimental.events.EventStatus
 
file - Variable in class dev.comfast.util.TempFile
 
flags(int) - Method in class dev.comfast.rgx.Rgx
 
flat(Map<?, ?>) - Method in class dev.comfast.experimental.config.MapFlatter
 
formatDuration(Duration) - Method in class dev.comfast.util.time.TimeFormatter
Format any duration into human-friendly format e.g
formatNanoseconds(long) - Method in class dev.comfast.util.time.TimeFormatter
Format any nanoseconds using proper SI unit in human-friendly format e.g

G

get() - Method in class dev.comfast.rgx.RgxMatch
 
get(int) - Method in class dev.comfast.rgx.RgxMatch
 
get(String, Class<EventContext>) - Static method in class dev.comfast.experimental.events.EventsApi
Creates/gets EventsManager with given name.
getActionName() - Method in class dev.comfast.experimental.events.AfterEvent
 
getActionName() - Method in class dev.comfast.experimental.events.BeforeEvent
 
getActionParams() - Method in class dev.comfast.experimental.events.AfterEvent
 
getActionParams() - Method in class dev.comfast.experimental.events.BeforeEvent
 
getBool(String) - Method in class dev.comfast.experimental.config.ConfigReader
 
getContext() - Method in class dev.comfast.experimental.events.AfterEvent
 
getContext() - Method in class dev.comfast.experimental.events.BeforeEvent
 
getDouble(String) - Method in class dev.comfast.experimental.config.ConfigReader
 
getDuration() - Method in class dev.comfast.util.time.StopwatchTime
 
getEndTimeNs() - Method in class dev.comfast.util.time.StopwatchTime
 
getError() - Method in class dev.comfast.experimental.events.AfterEvent
 
getLong(String) - Method in class dev.comfast.experimental.config.ConfigReader
 
getMillis() - Method in class dev.comfast.util.time.StopwatchTime
 
getNanos() - Method in class dev.comfast.util.time.StopwatchTime
 
getOrElse(int, String) - Method in class dev.comfast.rgx.RgxMatch
 
getOrElse(String) - Method in class dev.comfast.rgx.RgxMatch
 
getResult() - Method in class dev.comfast.experimental.events.AfterEvent
 
getStartTimeNs() - Method in class dev.comfast.util.time.StopwatchTime
 
getStartTimestamp() - Method in class dev.comfast.util.time.StopwatchTime
 
getStats() - Method in class dev.comfast.util.waiter.WaiterStats
 
getStats() - Method in exception dev.comfast.util.waiter.WaitTimeout
 
getStatus() - Method in class dev.comfast.experimental.events.AfterEvent
 
getStopwatch() - Method in class dev.comfast.experimental.events.BeforeEvent
 
getString(String) - Method in class dev.comfast.experimental.config.ConfigReader
Get config value from: System property appConfig.yaml/json/properties referenceConfig.yaml/json/properties
getTime() - Method in class dev.comfast.experimental.events.AfterEvent
 
getTries() - Method in class dev.comfast.util.waiter.WaiterState
 

H

horizontalTable(List<String>, List<List<String>>) - Method in class dev.comfast.util.TerminalGenerator
Generates table like:

I

isEmpty() - Method in class dev.comfast.rgx.RgxMatch
 
isPresent() - Method in class dev.comfast.rgx.RgxMatch
 
isTruthly(Object) - Static method in class dev.comfast.util.Utils
 

M

MapFlatter - Class in dev.comfast.experimental.config
 
MapFlatter() - Constructor for class dev.comfast.experimental.config.MapFlatter
 
match(String) - Method in class dev.comfast.rgx.Rgx
 
matchAll(String) - Method in class dev.comfast.rgx.Rgx
 
matchAllAsString(String) - Method in class dev.comfast.rgx.Rgx
 
matchAllAsString(String, int) - Method in class dev.comfast.rgx.Rgx
 
measure(Runnable) - Static method in class dev.comfast.util.time.Stopwatch
Measure time of running given function

N

nextTry() - Method in class dev.comfast.util.waiter.WaiterState
Start new timing loop.

P

passed(Object) - Method in class dev.comfast.experimental.events.BeforeEvent
Creates PASSED AfterEvent with given result.
PASSED - Enum constant in enum class dev.comfast.experimental.events.EventStatus
 
pattern - Variable in class dev.comfast.rgx.Rgx
 
poolingDivider - Variable in class dev.comfast.util.waiter.WaiterConfig
 
poolingMaxMs - Variable in class dev.comfast.util.waiter.WaiterConfig
 
poolingMinMs - Variable in class dev.comfast.util.waiter.WaiterConfig
 

R

read() - Method in class dev.comfast.util.TempFile
Read entire file.
readConfig() - Static method in class dev.comfast.experimental.config.ConfigApi
Creates ConfigReader that read all configurations from System properties appConfig.yaml referenceConfig.yaml For example:
recentError() - Method in class dev.comfast.util.waiter.WaiterStats
 
removeListener(String) - Method in class dev.comfast.experimental.events.EventsManager
 
result - Variable in class dev.comfast.experimental.events.AfterEvent
 
rethrow(Supplier<T>, String, Object...) - Static method in class dev.comfast.util.ErrorKit
Similarly to lombok SneakyThrows, wraps any checked / unchecked Exception into RuntimeException
rgx(String) - Static method in class dev.comfast.rgx.RgxApi
Usage example:
rgx(String, int) - Static method in class dev.comfast.rgx.RgxApi
Use regex with flags
Rgx - Class in dev.comfast.rgx
Rgx(String) - Constructor for class dev.comfast.rgx.Rgx
 
RgxApi - Class in dev.comfast.rgx
Provide fluent interface for common Regex operations.
RgxApi() - Constructor for class dev.comfast.rgx.RgxApi
 
RgxMatch - Class in dev.comfast.rgx
Represent one Regex match.
RgxMatch(String[], String, String) - Constructor for class dev.comfast.rgx.RgxMatch
 
RgxNotFound - Exception in dev.comfast.rgx
Thrown when regex match not found.
RgxNotFound(String, Object...) - Constructor for exception dev.comfast.rgx.RgxNotFound
 
RgxNotFound(String, Throwable, Object...) - Constructor for exception dev.comfast.rgx.RgxNotFound
 

S

sleep(long) - Static method in class dev.comfast.util.Utils
Unchecked sleep.
startTimeNs - Variable in class dev.comfast.util.time.StopwatchTime
 
startTimestamp - Variable in class dev.comfast.util.time.StopwatchTime
 
Stopwatch - Class in dev.comfast.util.time
Class for time measurements.
Stopwatch() - Constructor for class dev.comfast.util.time.Stopwatch
 
Stopwatch(long, long) - Constructor for class dev.comfast.util.time.Stopwatch
 
StopwatchTime - Class in dev.comfast.util.time
Result of Stopwatch measurement.

T

table(List<String>, List<List<String>>) - Method in class dev.comfast.util.TerminalGenerator
Generates table like:
TempFile - Class in dev.comfast.util
Represents file in default temp directory.
TempFile(String) - Constructor for class dev.comfast.util.TempFile
 
TempFile(String, boolean) - Constructor for class dev.comfast.util.TempFile
 
TerminalGenerator - Class in dev.comfast.util
Utility class that generates ASCII tables
TerminalGenerator() - Constructor for class dev.comfast.util.TerminalGenerator
 
TerminalGenerator(String) - Constructor for class dev.comfast.util.TerminalGenerator
 
TerminalGenerator(String, String, String) - Constructor for class dev.comfast.util.TerminalGenerator
 
throwIfEmpty() - Method in class dev.comfast.rgx.RgxMatch
Throws Exception with match details if match empty.
throwIfEmpty(String, Object...) - Method in class dev.comfast.rgx.RgxMatch
 
time - Variable in class dev.comfast.experimental.events.AfterEvent
 
time() - Method in class dev.comfast.util.time.Stopwatch
Can be used multiple times to get intermediate times.
TimeFormatter - Class in dev.comfast.util.time
 
TimeFormatter() - Constructor for class dev.comfast.util.time.TimeFormatter
 
timeoutMs - Variable in class dev.comfast.util.waiter.WaiterConfig
 
toString() - Method in class dev.comfast.experimental.events.AfterEvent
 
toString() - Method in class dev.comfast.experimental.events.BeforeEvent
 
toString() - Method in class dev.comfast.rgx.Rgx
 
toString() - Method in class dev.comfast.util.time.StopwatchTime
 
transposeMatrix(List<List<T>>) - Static method in class dev.comfast.util.Utils
 
trimString(Object, int) - Static method in class dev.comfast.util.Utils
 

U

Utils - Class in dev.comfast.util
 
Utils() - Constructor for class dev.comfast.util.Utils
 

V

valueOf(String) - Static method in enum class dev.comfast.experimental.events.EventStatus
Returns the enum constant of this class with the specified name.
values() - Static method in enum class dev.comfast.experimental.events.EventStatus
Returns an array containing the constants of this enum class, in the order they are declared.

W

Waiter - Class in dev.comfast.util.waiter
 
Waiter(long) - Constructor for class dev.comfast.util.waiter.Waiter
 
Waiter(WaiterConfig) - Constructor for class dev.comfast.util.waiter.Waiter
 
WaiterConfig - Class in dev.comfast.util.waiter
 
WaiterConfig(long, long, long, long, String) - Constructor for class dev.comfast.util.waiter.WaiterConfig
 
WaiterState - Class in dev.comfast.util.waiter
Handle all timing calculations for Waiter.
WaiterState(WaiterConfig) - Constructor for class dev.comfast.util.waiter.WaiterState
 
WaiterStats - Class in dev.comfast.util.waiter
 
WaiterStats() - Constructor for class dev.comfast.util.waiter.WaiterStats
 
waitFor(Runnable) - Method in class dev.comfast.util.waiter.Waiter
Repeat the action till it ends without exception.
waitFor(Supplier<T>) - Method in class dev.comfast.util.waiter.Waiter
Repeat the action till it ends without exception.
waitForValue(Supplier<T>) - Method in class dev.comfast.util.waiter.Waiter
Repeat the action till it returns truthy value.
WaitTimeout - Exception in dev.comfast.util.waiter
 
WaitTimeout(WaiterStats, String) - Constructor for exception dev.comfast.util.waiter.WaitTimeout
 
withSystemProp(String, Runnable) - Static method in class dev.comfast.util.Utils
Restore system property after func is done.
write(String) - Method in class dev.comfast.util.TempFile
Write content to file.

_

_fail(String, Object...) - Static method in class dev.comfast.util.ErrorKit
Short supplier for RuntimeException, fits to Streams/Optionals
A B C D E F G H I M N P R S T U V W _ 
All Classes|All Packages|Constant Field Values|Serialized Form