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
Box object with T in it.
byteSizeToString(long) - Static method in class org.gonn.gava.Common
Get bytes in long, and returns human-readable format with 2 digit decimal.

C

close() - Method in class org.gonn.gava.Config
 
close() - Method in interface org.gonn.gava.Storable
Close database connection.
Common - Class in org.gonn.gava
A collection of static methods that are very frequently used.
Config - Class in org.gonn.gava
Storing Configuration Property File
Config(String) - Constructor for class org.gonn.gava.Config
 
Config(String, FnTTR<String, String, Boolean>) - Constructor for class org.gonn.gava.Config
 
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 how many times the needle is in haystack.
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(FnR<String>) - Static method in class org.gonn.gava.Common
 
debug(FnR<String>) - Method in class org.gonn.gava.DevLogger
 
debug(FnR<T>) - Method in interface org.gonn.gava.Loggable
 
delete(String) - Method in class org.gonn.gava.Config
 
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(FnR<String>) - Static method in class org.gonn.gava.Common
 
error(FnR<String>) - Method in class org.gonn.gava.DevLogger
 
error(FnR<String>, int) - Method in class org.gonn.gava.DevLogger
 
error(FnR<T>) - Method in interface org.gonn.gava.Loggable
 
error(FnR<T>, int) - Method in interface org.gonn.gava.Loggable
 
eval(FnR<R>) - Static method in class org.gonn.gava.Common
Evaluate the function without a param (This is just to reduce code.)
eval(T, FnTR<T, R>) - Static method in class org.gonn.gava.Common
Evaluate the function with a param.

F

fatal(FnR<String>) - Method in class org.gonn.gava.DevLogger
 
fatal(FnR<String>, int) - Method in class org.gonn.gava.DevLogger
 
fatal(FnR<T>) - Method in interface org.gonn.gava.Loggable
 
fatal(FnR<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
 
FnR<R> - Interface in org.gonn.gava
Lambda function that returns type R.
FnT<T> - Interface in org.gonn.gava
Lambda function that takes a param T.
FnTR<T,R> - Interface in org.gonn.gava
Lambda function that takes a param T, and returns a param R.
FnTT<T1,T2> - Interface in org.gonn.gava
Lambda function that takes param T1 and T2, and returns nothing.
FnTTR<T1,T2,R> - Interface in org.gonn.gava
Lambda function that takes param T1 and T2, and returns R.
forEach(BiConsumer<String, String>) - Method in class org.gonn.gava.Config
 

G

get() - Method in class org.gonn.gava.Box
Get the box content.
get(T) - Method in class org.gonn.gava.Box
Get the box content.
get(String) - Method in class org.gonn.gava.Config
 
get(T) - Method in interface org.gonn.gava.Storable
Get a record for the key.
getBetween(String, String, String) - Static method in class org.gonn.gava.Common
Get a String between String prefix and String suffix from String s.
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.
getDigits(int) - Static method in class org.gonn.gava.Common
 
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 the input 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.
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(FnR<String>) - Static method in class org.gonn.gava.Common
 
info(FnR<String>) - Method in class org.gonn.gava.DevLogger
 
info(FnR<T>) - Method in interface org.gonn.gava.Loggable
 
isBetween(String, String, String) - Static method in class org.gonn.gava.Common
Check if the input has the prefix AND the suffix.
isEmpty() - Method in class org.gonn.gava.Box
Check if the box content is NULL.
isFull() - Method in class org.gonn.gava.Box
Check if the box content 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
Left trim the string
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(FnTR<T, R>) - Method in class org.gonn.gava.Box
Converts box content to a new content in a box.
map(FnTR<T, R>, R) - Method in class org.gonn.gava.Box
Converts box content to a new content in a box.
MINUTE - Static variable in class org.gonn.gava.Common
 

O

of(T) - Static method in class org.gonn.gava.Box
Static constructor:
or(T) - Method in class org.gonn.gava.Box
If the box is empty, returns the box with the fallback value
orElse(FnR<T>) - Method in class org.gonn.gava.Box
If the box is empty, returns the box with the fallback value
org.gonn.gava - package org.gonn.gava
Gava
orThrow(E) - Method in class org.gonn.gava.Box
If the box is empty (content is null), throw an exception.

P

parseArgs(String[], FnTT<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
Remove prefix from the String s
removePrefix(String, char) - Static method in class org.gonn.gava.Common
Remove prefix from the String s
removeSuffix(String, String) - Static method in class org.gonn.gava.Common
Remove the suffix from the String s
removeSuffix(String, char) - Static method in class org.gonn.gava.Common
Remove the suffix from the String s
repeat(char, int) - Static method in class org.gonn.gava.Common
Take a char c and repeat it n times.
repeat(String, int) - Static method in class org.gonn.gava.Common
Repeat the input string for n times.
rtrim(String) - Static method in class org.gonn.gava.Common
Right trim the string
run() - Method in interface org.gonn.gava.FnR
 
run(T) - Method in interface org.gonn.gava.FnT
 
run(T) - Method in interface org.gonn.gava.FnTR
 
run(T1, T2) - Method in interface org.gonn.gava.FnTT
 
run(T1, T2) - Method in interface org.gonn.gava.FnTTR
 

S

save() - Method in class org.gonn.gava.Config
 
SECOND - Static variable in class org.gonn.gava.Common
 
set(String, String) - Method in class org.gonn.gava.Config
 
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(FnTT<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
Return the string until index idx.

T

testing() - Method in class org.gonn.gava.DevLogger
Enables all options.
then(FnT<T>) - Method in class org.gonn.gava.Box
View or modifying the box content.
thenSet(FnTR<T, T>) - Method in class org.gonn.gava.Box
Replace the box content.
toString() - Method in class org.gonn.gava.DevLogger
 
trace(FnR<String>) - Method in class org.gonn.gava.DevLogger
 
trace(FnR<T>) - Method in interface org.gonn.gava.Loggable
 

U

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(FnR<String>) - Static method in class org.gonn.gava.Common
 
warn(FnR<String>) - Method in class org.gonn.gava.DevLogger
 
warn(FnR<String>, int) - Method in class org.gonn.gava.DevLogger
 
warn(FnR<T>) - Method in interface org.gonn.gava.Loggable
 
warn(FnR<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.