Skip navigation links
B C D E F G H I J L M O P R S T U V W 

B

Box<T> - Class in org.gonn.gava
Box an object just like the java.util.Optional
Box(T) - Constructor for class org.gonn.gava.Box
 

C

close() - Method in class org.gonn.gava.ConfigStore
 
close() - Method in interface org.gonn.gava.Storable
Close database connection.
Common - Class in org.gonn.gava
Basic static functions
ConfigStore - Class in org.gonn.gava
Storing Configuration Property File
ConfigStore(String) - Constructor for class org.gonn.gava.ConfigStore
 
ConfigStore(String, BiFunction<String, String, Boolean>) - Constructor for class org.gonn.gava.ConfigStore
 
count(String, char) - Static method in class org.gonn.gava.Common
Count char c from String s, returns int of how many times char c was used.
count(String, String) - Static method in class org.gonn.gava.Common
 
count(String[], String) - Static method in class org.gonn.gava.Common
How many times String key was in the String array s.

D

DAY - Static variable in class org.gonn.gava.Common
 
debug(Supplier<String>) - Static method in class org.gonn.gava.Common
 
debug(Supplier<String>) - Method in class org.gonn.gava.DevLogger
 
debug(Supplier<T>) - Method in interface org.gonn.gava.Loggable
 
delete(String) - Method in class org.gonn.gava.ConfigStore
 
delete(T) - Method in interface org.gonn.gava.Storable
Delete a record
DevLogger - Class in org.gonn.gava
DevLogger is a temporary simplest logger to be used during early stage of development.
DevLogger(String) - Constructor for class org.gonn.gava.DevLogger
When DevLogger is created, it will get Property and ENV variables for activating the logger.
DevLogger(Class<?>) - Constructor for class org.gonn.gava.DevLogger
 
DevLogger(Class<?>, String) - Constructor for class org.gonn.gava.DevLogger
Logger name to have optional identifier such as filename.

E

ENV_LOG_FILELINE - Static variable in class org.gonn.gava.DevLogger
 
ENV_LOG_LEVEL - Static variable in class org.gonn.gava.DevLogger
 
ENV_LOG_OUTPUT - Static variable in class org.gonn.gava.DevLogger
 
ENV_LOG_TIMESTAMP - Static variable in class org.gonn.gava.DevLogger
 
ENV_VAR_VERBOSE - Static variable in class org.gonn.gava.Common
Default params set when any of the method was first used.
EPOCH_STARTED - Static variable in class org.gonn.gava.Common
 
epochToString(long, int, boolean) - Static method in class org.gonn.gava.Common
Converts epoch milliseconds to human-readable time format.
epochToString(long, int) - Static method in class org.gonn.gava.Common
Return epoch time with offset.
epochToString(long) - Static method in class org.gonn.gava.Common
Returns UTC time from epochMillis.
epochToString() - Static method in class org.gonn.gava.Common
Time since EPOCH_STARTED in string format
equals(Object) - Method in class org.gonn.gava.Box
 
error(Supplier<String>) - Static method in class org.gonn.gava.Common
 
error(Supplier<String>) - Method in class org.gonn.gava.DevLogger
 
error(Supplier<String>, int) - Method in class org.gonn.gava.DevLogger
 
error(Supplier<T>) - Method in interface org.gonn.gava.Loggable
 
error(Supplier<T>, int) - Method in interface org.gonn.gava.Loggable
 

F

fatal(Supplier<String>) - Method in class org.gonn.gava.DevLogger
 
fatal(Supplier<String>, int) - Method in class org.gonn.gava.DevLogger
 
fatal(Supplier<T>) - Method in interface org.gonn.gava.Loggable
 
fatal(Supplier<T>, int) - Method in interface org.gonn.gava.Loggable
 
first(T[]) - Static method in class org.gonn.gava.Common
 
first(String) - Static method in class org.gonn.gava.Common
 
forEach(BiConsumer<String, String>) - Method in class org.gonn.gava.ConfigStore
 

G

get() - Method in class org.gonn.gava.Box
Get underlying value of the box.
get(T) - Method in class org.gonn.gava.Box
Get underlying value of the box.
get(Supplier<T>) - Static method in class org.gonn.gava.Common
Evaluates the given function and return the result.
get(String) - Method in class org.gonn.gava.ConfigStore
 
get(T) - Method in interface org.gonn.gava.Storable
Get a record for the key.
getByteSizeString(long) - Static method in class org.gonn.gava.Common
Get bytes in long, and returns human-readable format with 2 digit decimal.
getCaller(int) - Static method in class org.gonn.gava.Common
Get a StackTraceElement of the caller to find out who called this function.
getCaller() - Static method in class org.gonn.gava.Common
Returns caller information in "filename:lineNumber" format.
getConfig(String, boolean) - Static method in class org.gonn.gava.Common
Check (1) system properties, and then (2) environmental variables.
getConfig(String, String) - Static method in class org.gonn.gava.Common
 
getConfig(String) - Static method in class org.gonn.gava.Common
 
getDigits(long) - Static method in class org.gonn.gava.Common
Get an integer and calculate number of digits.
getEpoch() - Static method in class org.gonn.gava.Common
Returns current epoch milliseconds.
getHash(String) - Static method in class org.gonn.gava.Common
Get hash from string
getNth(String, char, int) - Static method in class org.gonn.gava.Common
Returns index element from the String s when separated by char delim.
getStringBetween(String, String, String) - Static method in class org.gonn.gava.Common
Get a String between String prefix and String suffix from String s.
getTimed(Runnable, int) - Static method in class org.gonn.gava.Common
Run lambda function Runnable r for count times.

H

hashCode() - Method in class org.gonn.gava.Box
 
HOUR - Static variable in class org.gonn.gava.Common
 

I

info(Supplier<String>) - Static method in class org.gonn.gava.Common
 
info(Supplier<String>) - Method in class org.gonn.gava.DevLogger
 
info(Supplier<T>) - Method in interface org.gonn.gava.Loggable
 
isEmpty() - Method in class org.gonn.gava.Box
If the box's underlying value is NULL.
isFull() - Method in class org.gonn.gava.Box
If the box's underlying value is NOT NULL.

J

join(String, Object...) - Static method in class org.gonn.gava.Common
 

L

last(T[]) - Static method in class org.gonn.gava.Common
 
last(String) - Static method in class org.gonn.gava.Common
 
log(String, String) - Static method in class org.gonn.gava.Common
Whenever static method log() is called, it will print to System.out.
Loggable<T> - Interface in org.gonn.gava
Minimal Logger Interface
ltrim(String) - Static method in class org.gonn.gava.Common
 
LV_ALL - Static variable in class org.gonn.gava.DevLogger
 
LV_DEBUG - Static variable in class org.gonn.gava.DevLogger
 
LV_ERROR - Static variable in class org.gonn.gava.DevLogger
 
LV_FATAL - Static variable in class org.gonn.gava.DevLogger
 
LV_INFO - Static variable in class org.gonn.gava.DevLogger
 
LV_OFF - Static variable in class org.gonn.gava.DevLogger
 
LV_TRACE - Static variable in class org.gonn.gava.DevLogger
 
LV_WARN - Static variable in class org.gonn.gava.DevLogger
 

M

main(String[]) - Static method in class org.gonn.gava.Common
 
map(Function<T, R>) - Method in class org.gonn.gava.Box
Map current underlying value of T into value of Box of R.
map(Function<T, R>, Supplier<R>) - Method in class org.gonn.gava.Box
When valueFunction failed during map(), use output from fallbackSupplier()
MINUTE - Static variable in class org.gonn.gava.Common
 

O

of(T) - Static method in class org.gonn.gava.Box
Static constructor.
or(Supplier<T>) - Method in class org.gonn.gava.Box
If not exists, function mod's value will be set for the value.
org.gonn.gava - package org.gonn.gava
Gava
orThrow(Supplier<? extends X>) - Method in class org.gonn.gava.Box
If the Box is empty, throw an exception.

P

parseArgs(String[], BiConsumer<String, String>) - Static method in class org.gonn.gava.Common
Handles args such as `--name="Gon"`
println(Object...) - Static method in class org.gonn.gava.Common
 
prints(String, Object...) - Static method in class org.gonn.gava.Common
Prints any objects in a line per item.

R

removePrefix(String, String) - Static method in class org.gonn.gava.Common
 
removePrefix(String, char) - Static method in class org.gonn.gava.Common
 
removeSuffix(String, String) - Static method in class org.gonn.gava.Common
 
removeSuffix(String, char) - Static method in class org.gonn.gava.Common
 
repeat(char, int) - Static method in class org.gonn.gava.Common
Take a char c and repeat it n times, store it as a String.
repeat(String, int) - Static method in class org.gonn.gava.Common
 
rtrim(String) - Static method in class org.gonn.gava.Common
 

S

save() - Method in class org.gonn.gava.ConfigStore
 
SECOND - Static variable in class org.gonn.gava.Common
 
set(String, String) - Method in class org.gonn.gava.ConfigStore
 
set(T, U) - Method in interface org.gonn.gava.Storable
Add a record with the key.
setFormat(boolean, boolean) - Method in class org.gonn.gava.DevLogger
Set output format to include timestamp and fileline.
setLevel(String) - Method in class org.gonn.gava.DevLogger
Set level, either take full string, first character, OR the static variables starting with "LV_".
setLevel(byte) - Method in class org.gonn.gava.DevLogger
 
setLevel(int) - Method in class org.gonn.gava.DevLogger
 
setLevel(char) - Method in class org.gonn.gava.DevLogger
 
setOutput(BiConsumer<Byte, String>) - Method in class org.gonn.gava.DevLogger
Set output writer function
sleep(long) - Static method in class org.gonn.gava.Common
Shortcut function that calls Thread.sleep() but does not require try/catch.
Storable<T,U> - Interface in org.gonn.gava
Minimal Database Interface for CRUD operation A user can use key for Bucket/Database as well.
substring(String, int, int) - Static method in class org.gonn.gava.Common
A static alternative substring method.
substring(String, int) - Static method in class org.gonn.gava.Common
 

T

testing() - Method in class org.gonn.gava.DevLogger
Enables all options.
then(Consumer<T>) - Method in class org.gonn.gava.Box
Run consumer mod.
toString() - Method in class org.gonn.gava.DevLogger
 
trace(Supplier<String>) - Method in class org.gonn.gava.DevLogger
 
trace(Supplier<T>) - Method in interface org.gonn.gava.Loggable
 

U

update(UnaryOperator<T>) - Method in class org.gonn.gava.Box
Update will replace underlying T value.
update(T, UnaryOperator<U>) - Method in interface org.gonn.gava.Storable
Update a record

V

VERBOSE_MODE - Static variable in class org.gonn.gava.Common
 

W

warn(Supplier<String>) - Static method in class org.gonn.gava.Common
 
warn(Supplier<String>) - Method in class org.gonn.gava.DevLogger
 
warn(Supplier<String>, int) - Method in class org.gonn.gava.DevLogger
 
warn(Supplier<T>) - Method in interface org.gonn.gava.Loggable
 
warn(Supplier<T>, int) - Method in interface org.gonn.gava.Loggable
 
B C D E F G H I J L M O P R S T U V W 
Skip navigation links

Copyright © 2023. All rights reserved.