Skip navigation links
B C D E F G H I J L M O P R S T 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.Stu
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 the storable
Config - Class in org.gonn.gava
Storing Configuration Property File
Config(String) - Constructor for class org.gonn.gava.Config
 
Config(String, Fx21<String, String, Boolean>) - Constructor for class org.gonn.gava.Config
 
count(String, char) - Static method in class org.gonn.gava.Stu
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.Stu
Count how many times the needle is in haystack.
count(String[], String) - Static method in class org.gonn.gava.Stu
How many times String key was in the String array s.

D

DAY - Static variable in class org.gonn.gava.Stu
 
debug(Fx01<T>) - Method in interface org.gonn.gava.Loggable
 
debug(Fx01<String>) - Static method in class org.gonn.gava.Stu
 
debug(Fx01<String>) - Method in class org.gonn.gava.TempLogger
 
delete(String) - Method in class org.gonn.gava.Config
 
delete(T) - Method in interface org.gonn.gava.Storable
Delete a record

E

EMPTY_STRING_ARRAY - Static variable in class org.gonn.gava.Stu
 
ENV_LOG_FILELINE - Static variable in class org.gonn.gava.TempLogger
 
ENV_LOG_LEVEL - Static variable in class org.gonn.gava.TempLogger
 
ENV_LOG_OUTPUT - Static variable in class org.gonn.gava.TempLogger
 
ENV_LOG_TIMESTAMP - Static variable in class org.gonn.gava.TempLogger
 
ENV_VAR_VERBOSE - Static variable in class org.gonn.gava.Stu
Default params set when any of the method was first used.
EPOCH_STARTED - Static variable in class org.gonn.gava.Stu
 
epochToString(long, int, boolean) - Static method in class org.gonn.gava.Stu
Converts epoch milliseconds to human-readable time format.
epochToString(long, int) - Static method in class org.gonn.gava.Stu
Return epoch time with offset.
epochToString(long) - Static method in class org.gonn.gava.Stu
Returns UTC time from epochMillis.
epochToString() - Static method in class org.gonn.gava.Stu
Time since EPOCH_STARTED in string format
error(Fx01<T>) - Method in interface org.gonn.gava.Loggable
 
error(Fx01<String>) - Static method in class org.gonn.gava.Stu
 
error(Fx01<String>) - Method in class org.gonn.gava.TempLogger
 
error(Fx01<String>, int) - Method in class org.gonn.gava.TempLogger
 
eval(Fx10<T>) - Method in class org.gonn.gava.Box
Evaluate the value regardless of whether the box is empty or not.
eval(Fx01<R>) - Static method in class org.gonn.gava.Stu
Evaluate the function without a param (This is just to reduce code.)
eval(T, Fx11<T, R>) - Static method in class org.gonn.gava.Stu
Evaluate the function with a param.
eval(T1, T2, Fx21<T1, T2, R>) - Static method in class org.gonn.gava.Stu
Evaluate the function with a param.
evalX(T, FxThrow<T, R>, Fx11<Exception, R>) - Static method in class org.gonn.gava.Stu
Evaluate a given function with a param.

F

fatal(Fx01<T>) - Method in interface org.gonn.gava.Loggable
 
fatal(Fx01<String>) - Method in class org.gonn.gava.TempLogger
 
fatal(Fx01<String>, int) - Method in class org.gonn.gava.TempLogger
 
first(T[]) - Static method in class org.gonn.gava.Stu
 
first(String) - Static method in class org.gonn.gava.Stu
 
forEach(BiConsumer<String, String>) - Method in class org.gonn.gava.Config
 
forEach(T[], Fx10<T>) - Static method in class org.gonn.gava.Stu
Evaluate each T in T[].
forEachSet(T[], FxUnary<T>) - Static method in class org.gonn.gava.Stu
Modify array using fx
Fx01<R> - Interface in org.gonn.gava
Lambda function that returns type R.
Fx10<T> - Interface in org.gonn.gava
Lambda function that takes a param T.
Fx11<T,R> - Interface in org.gonn.gava
Lambda function that takes a param T, and returns a param R.
Fx20<T1,T2> - Interface in org.gonn.gava
Lambda function that takes param T1 and T2, and returns nothing.
Fx21<T1,T2,R> - Interface in org.gonn.gava
Lambda function that takes param T1 and T2, and returns R.
FxBool<T> - Interface in org.gonn.gava
Lambda function that returns (primitive) boolean.
FxInt<T> - Interface in org.gonn.gava
Lambda function that returns (primitive) integer.
FxThrow<T,R> - Interface in org.gonn.gava
Fx11-type functional interface that can throw an exception
FxUnary<T> - Interface in org.gonn.gava
A lambda function that returns the data with same type with input (e.g.

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.Stu
Get a String between String prefix and String suffix from String s.
getCaller(int) - Static method in class org.gonn.gava.Stu
Get a StackTraceElement of the caller to find out who called this function.
getCaller() - Static method in class org.gonn.gava.Stu
Returns caller information in "filename:lineNumber" format.
getConfig(String, boolean) - Static method in class org.gonn.gava.Stu
Check (1) system properties, and then (2) environmental variables.
getConfig(String, String) - Static method in class org.gonn.gava.Stu
 
getConfig(String) - Static method in class org.gonn.gava.Stu
 
getDigits(long) - Static method in class org.gonn.gava.Stu
Get an integer and calculate number of digits.
getDigits(int) - Static method in class org.gonn.gava.Stu
 
getEpoch() - Static method in class org.gonn.gava.Stu
Returns current epoch milliseconds.
getHash(String) - Static method in class org.gonn.gava.Stu
Get hash from the input string
getNth(String, char, int) - Static method in class org.gonn.gava.Stu
Returns index element from the String s when separated by char delim.
getTimed(Runnable, int) - Static method in class org.gonn.gava.Stu
Run lambda function Runnable r for count times.

H

HOUR - Static variable in class org.gonn.gava.Stu
 

I

info(Fx01<T>) - Method in interface org.gonn.gava.Loggable
 
info(Fx01<String>) - Static method in class org.gonn.gava.Stu
 
info(Fx01<String>) - Method in class org.gonn.gava.TempLogger
 
isBetween(String, String, String) - Static method in class org.gonn.gava.Stu
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.Stu
 

L

last(T[]) - Static method in class org.gonn.gava.Stu
 
last(String) - Static method in class org.gonn.gava.Stu
 
log(String, String) - Static method in class org.gonn.gava.Stu
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.Stu
Left trim the string
LV_ALL - Static variable in class org.gonn.gava.TempLogger
 
LV_DEBUG - Static variable in class org.gonn.gava.TempLogger
 
LV_ERROR - Static variable in class org.gonn.gava.TempLogger
 
LV_FATAL - Static variable in class org.gonn.gava.TempLogger
 
LV_INFO - Static variable in class org.gonn.gava.TempLogger
 
LV_OFF - Static variable in class org.gonn.gava.TempLogger
 
LV_TRACE - Static variable in class org.gonn.gava.TempLogger
 
LV_WARN - Static variable in class org.gonn.gava.TempLogger
 

M

main(String[]) - Static method in class org.gonn.gava.Stu
 
map(Fx11<T, 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.Stu
 
mustGet(T, T) - Static method in class org.gonn.gava.Stu
If t is null, return fallback value.
mustGet(T, X) - Static method in class org.gonn.gava.Stu
If t is null, throw an exception

O

of(T) - Static method in class org.gonn.gava.Box
Static constructor:
of(Fx01<R>) - Static method in class org.gonn.gava.Box
Static constructor:
or(Runnable) - Method in class org.gonn.gava.Box
If the box is empty, execute the Runnable.
org.gonn.gava - package org.gonn.gava
Gava
orSet(Fx01<T>) - Method in class org.gonn.gava.Box
If the box is empty, returns the box with a new value

P

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

R

removePrefix(String, String) - Static method in class org.gonn.gava.Stu
Remove prefix from the String s
removePrefix(String, char) - Static method in class org.gonn.gava.Stu
Remove prefix from the String s
removeSuffix(String, String) - Static method in class org.gonn.gava.Stu
Remove the suffix from the String s
removeSuffix(String, char) - Static method in class org.gonn.gava.Stu
Remove the suffix from the String s
repeat(char, int) - Static method in class org.gonn.gava.Stu
Take a char c and repeat it n times.
repeat(String, int) - Static method in class org.gonn.gava.Stu
Repeat the input string for n times.
reset(T) - Method in class org.gonn.gava.Box
Regardless of the box's state (whether full or not), set the content of the box.
rtrim(String) - Static method in class org.gonn.gava.Stu
Right trim the string
run() - Method in interface org.gonn.gava.Fx01
 
run(T) - Method in interface org.gonn.gava.Fx10
 
run(T) - Method in interface org.gonn.gava.Fx11
 
run(T1, T2) - Method in interface org.gonn.gava.Fx20
 
run(T1, T2) - Method in interface org.gonn.gava.Fx21
 
run(T) - Method in interface org.gonn.gava.FxBool
 
run(T) - Method in interface org.gonn.gava.FxInt
 
run(T) - Method in interface org.gonn.gava.FxThrow
 
run(T) - Method in interface org.gonn.gava.FxUnary
 

S

save() - Method in class org.gonn.gava.Config
 
SECOND - Static variable in class org.gonn.gava.Stu
 
set(Fx01<R>) - Method in class org.gonn.gava.Box
Regardless of the box's state (whether full or not), set the content of the box.
set(String, String) - Method in class org.gonn.gava.Config
 
set(T, R) - Method in interface org.gonn.gava.Storable
Add a record with the key.
setFormat(boolean, boolean) - Method in class org.gonn.gava.TempLogger
Set output format to include timestamp and fileline.
setLevel(String) - Method in class org.gonn.gava.TempLogger
Set level, either take full string, first character, OR the static variables starting with "LV_".
setLevel(byte) - Method in class org.gonn.gava.TempLogger
 
setLevel(int) - Method in class org.gonn.gava.TempLogger
 
setLevel(char) - Method in class org.gonn.gava.TempLogger
 
setOutput(Fx20<Byte, String>) - Method in class org.gonn.gava.TempLogger
Set output writer function
skip(FxBool<T>) - Method in class org.gonn.gava.Box
If the condition function returns true, empty the box.
sleep(long) - Static method in class org.gonn.gava.Stu
Shortcut function that calls Thread.sleep() but does not require try/catch.
Storable<T,R> - Interface in org.gonn.gava
Minimal Database Interface for CRUD operation A user can use key for Bucket/Database as well.
Stu - Class in org.gonn.gava
`[St]atic [U]tils` is a collection of static methods that are very frequently used.
subset(String[], int, int) - Static method in class org.gonn.gava.Stu
Creates a subset of String array.
substring(String, int, int) - Static method in class org.gonn.gava.Stu
A static alternative substring method.
substring(String, int) - Static method in class org.gonn.gava.Stu
Return the string until index idx.

T

TempLogger - Class in org.gonn.gava
DevLogger is a temporary simplest logger to be used during early stage of development.
TempLogger(String) - Constructor for class org.gonn.gava.TempLogger
When DevLogger is created, it will get Property and ENV variables for activating the logger.
TempLogger(Class<?>) - Constructor for class org.gonn.gava.TempLogger
 
TempLogger(Class<?>, String) - Constructor for class org.gonn.gava.TempLogger
Logger name to have optional identifier such as filename.
testing() - Method in class org.gonn.gava.TempLogger
Enables all options.
then(Fx10<T>) - Method in class org.gonn.gava.Box
View or modifying the box content.
thenSet(FxUnary<T>) - Method in class org.gonn.gava.Box
Replace the box content.
toString() - Method in class org.gonn.gava.Box
 
toString() - Method in class org.gonn.gava.TempLogger
 
trace(Fx01<T>) - Method in interface org.gonn.gava.Loggable
 
trace(Fx01<String>) - Method in class org.gonn.gava.TempLogger
 

V

validate(FxBool<T>, X) - Method in class org.gonn.gava.Box
Validate the box with validation function.
VERBOSE_MODE - Static variable in class org.gonn.gava.Stu
 

W

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

Copyright © 2023. All rights reserved.