Index
All Classes and Interfaces|All Packages
A
- ALL - Static variable in class com.github.nedelis.jc4j.logging.JC4JLogLevel
- apply() - Method in interface com.github.nedelis.jc4j.util.NoParamsFunction
- apply() - Method in interface com.github.nedelis.jc4j.util.Procedure
B
- BOOL - Static variable in class com.github.nedelis.jc4j.jsonvalue.JSONValueType
- build() - Method in class com.github.nedelis.jc4j.logging.JC4JLoggerBuilder
-
Builds a new logger
C
- checkForInstance(Object) - Method in interface com.github.nedelis.jc4j.jsonvalue.IJSONValueType
-
This method should return true if the given object is instanceof RT, false otherwise
- com.github.nedelis.jc4j - package com.github.nedelis.jc4j
- com.github.nedelis.jc4j.jsonvalue - package com.github.nedelis.jc4j.jsonvalue
- com.github.nedelis.jc4j.logging - package com.github.nedelis.jc4j.logging
- com.github.nedelis.jc4j.util - package com.github.nedelis.jc4j.util
- config() - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
Creates a copy of the
ConfigWrapper.configand returns it - ConfigWrapper - Class in com.github.nedelis.jc4j
-
Wrapper for config files and default config files
- convert(Object, RT) - Method in interface com.github.nedelis.jc4j.jsonvalue.IJSONValueType
-
This method should convert the given object to a definite java value
- copy() - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
Creates a copy of whole json config
D
- debug(String) - Method in class com.github.nedelis.jc4j.logging.JC4JLogger
- debug(String, Throwable) - Method in class com.github.nedelis.jc4j.logging.JC4JLogger
- DEBUG - Static variable in class com.github.nedelis.jc4j.logging.JC4JLogLevel
- defaultConfig() - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
Creates a copy of the
ConfigWrapper.defaultConfigand returns it - delete() - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
Deletes the config file from the config files directory
- disable() - Method in class com.github.nedelis.jc4j.logging.JC4JLogger
-
Disables logger
- DOUBLE - Static variable in class com.github.nedelis.jc4j.jsonvalue.JSONValueType
- doWithoutLogging(NoParamsFunction<R>) - Method in class com.github.nedelis.jc4j.logging.JC4JLogger
-
This function allows to do any other function without logging
- doWithoutLogging(Procedure) - Method in class com.github.nedelis.jc4j.logging.JC4JLogger
-
This procedure allows to do any other procedure without logging
E
- enable() - Method in class com.github.nedelis.jc4j.logging.JC4JLogger
-
Enables logger
- equals(Object) - Method in record class com.github.nedelis.jc4j.jsonvalue.JSONValue
-
Indicates whether some other object is "equal to" this one.
- error(String) - Method in class com.github.nedelis.jc4j.logging.JC4JLogger
- error(String, Throwable) - Method in class com.github.nedelis.jc4j.logging.JC4JLogger
- ERROR - Static variable in class com.github.nedelis.jc4j.logging.JC4JLogLevel
F
- fatal(String) - Method in class com.github.nedelis.jc4j.logging.JC4JLogger
-
Prints the given message, stores it in the
JC4JLogger.messagesand shuts down the program - fatal(String, Throwable) - Method in class com.github.nedelis.jc4j.logging.JC4JLogger
-
Do the same thing as
JC4JLogger.fatal(String), but also prints the given throwable - FATAL - Static variable in class com.github.nedelis.jc4j.logging.JC4JLogLevel
G
- get(String) - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
Returns wrapped value from the config corresponding to the provided key
- getAsJavaValue(String, IJSONValueType<T>) - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
Shortcut for "get(String).toJavaValue(IJSONValueType)".
- getAsJavaValue(String, T) - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
Shortcut for "get(String).toJavaValue(Object)"
- getFormattedMessage(String, String, int) - Method in class com.github.nedelis.jc4j.logging.JC4JLoggerMessagePattern
-
Format the given message according to the pattern
- getFromDefault(String) - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
Returns wrapped value from default config corresponding to the provided key
- getLevelName(int) - Static method in class com.github.nedelis.jc4j.logging.JC4JLogLevel
-
Finds name of the provided level integer
- getOrDefault(String) - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
Returns wrapped value from the config corresponding to the provided key if the config contains such key, otherwise returns value from default config corresponding to the same key
- getOrDefault(String, Object) - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
Returns wrapped value from the config corresponding to the provided key if the config contains such key, otherwise returns provided default value
- getRaw(String) - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
Deprecated.
- getRawFromDefault(String) - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
Deprecated.
- getRawOrDefault(String) - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
Returns raw value corresponding to the provided key if config contains such key, otherwise returns raw value from default config corresponding to the same key
- getRawOrDefault(String, Object) - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
Tries to get the value of corresponding key and if there is no such key in config, returns provided default value
H
- hashCode() - Method in record class com.github.nedelis.jc4j.jsonvalue.JSONValue
-
Returns a hash code value for this object.
I
- IJSONValueType<RT> - Interface in com.github.nedelis.jc4j.jsonvalue
-
This interface represents any convertible json value
- info(String) - Method in class com.github.nedelis.jc4j.logging.JC4JLogger
- info(String, Throwable) - Method in class com.github.nedelis.jc4j.logging.JC4JLogger
- INFO - Static variable in class com.github.nedelis.jc4j.logging.JC4JLogLevel
- INT - Static variable in class com.github.nedelis.jc4j.jsonvalue.JSONValueType
- isBroken() - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
Check if the config is broken
- isEnabled() - Method in class com.github.nedelis.jc4j.logging.JC4JLogger
-
Checks whether the logger is enabled or not
J
- JC4JLogger - Class in com.github.nedelis.jc4j.logging
-
Custom logger of the library.
- JC4JLogger(String, Path, int, JC4JLoggerMessagePattern) - Constructor for class com.github.nedelis.jc4j.logging.JC4JLogger
- JC4JLoggerBuilder - Class in com.github.nedelis.jc4j.logging
-
This class helps to create JC4JLogger
- JC4JLoggerBuilder() - Constructor for class com.github.nedelis.jc4j.logging.JC4JLoggerBuilder
- JC4JLoggerBuilder(String) - Constructor for class com.github.nedelis.jc4j.logging.JC4JLoggerBuilder
- JC4JLoggerMessagePattern - Class in com.github.nedelis.jc4j.logging
-
This class allows logger have custom message patterns
- JC4JLoggerMessagePattern() - Constructor for class com.github.nedelis.jc4j.logging.JC4JLoggerMessagePattern
-
Creates new
JC4JLoggerMessagePatternwith default pattern - JC4JLoggerMessagePattern(String) - Constructor for class com.github.nedelis.jc4j.logging.JC4JLoggerMessagePattern
-
Creates new
JC4JLoggerMessagePatternwith the specified pattern - JC4JLogLevel - Class in com.github.nedelis.jc4j.logging
-
This class contains all allowed message/logger levels
- JC4JLogLevel() - Constructor for class com.github.nedelis.jc4j.logging.JC4JLogLevel
- JS_VAL_LIST - Static variable in class com.github.nedelis.jc4j.jsonvalue.JSONValueType
- JS_VAL_MAP - Static variable in class com.github.nedelis.jc4j.jsonvalue.JSONValueType
- JSONConfig4Java - Class in com.github.nedelis.jc4j
-
Contains all global constants/variables and methods
- JSONConfig4Java() - Constructor for class com.github.nedelis.jc4j.JSONConfig4Java
- JSONValue - Record Class in com.github.nedelis.jc4j.jsonvalue
-
This class is used to wrap a json value; After wrapping a json value you can call
JSONValue.toJavaValue(Object)which will return you converted JSONValue - JSONValue(Object) - Constructor for record class com.github.nedelis.jc4j.jsonvalue.JSONValue
-
Creates an instance of a
JSONValuerecord class. - JSONValueType - Class in com.github.nedelis.jc4j.jsonvalue
-
This class allows you to convert any value from a json to a java value; You also can register your own java value types by using
JSONValueType.register(String, IJSONValueType) - JSONValueType() - Constructor for class com.github.nedelis.jc4j.jsonvalue.JSONValueType
L
- LOGGER - Static variable in class com.github.nedelis.jc4j.JSONConfig4Java
- logLevel() - Method in class com.github.nedelis.jc4j.logging.JC4JLogger
N
- name() - Method in class com.github.nedelis.jc4j.logging.JC4JLogger
- NoParamsFunction<R> - Interface in com.github.nedelis.jc4j.util
-
Allows to create functions without arguments using lambda
O
- objectsMapToJsonValuesMap(Map<String, ?>) - Static method in record class com.github.nedelis.jc4j.jsonvalue.JSONValue
-
Converts map of objects to a map of JSON values
- objectsToJsonValues(List<?>) - Static method in record class com.github.nedelis.jc4j.jsonvalue.JSONValue
-
Converts list of objects to a list of JSON values
- of(File, File) - Static method in class com.github.nedelis.jc4j.ConfigWrapper
-
Creates new
ConfigWrapperfrom provided config file and provided default config file - of(File, Map<?, ?>) - Static method in class com.github.nedelis.jc4j.ConfigWrapper
-
Creates new
ConfigWrapperfrom provided config file and default config map (default config values) - of(String, String, File) - Static method in class com.github.nedelis.jc4j.ConfigWrapper
-
Creates new
ConfigWrapperfrom provided path to config(-s) directory, config file name without extension and default config file - of(String, String, Map<?, ?>) - Static method in class com.github.nedelis.jc4j.ConfigWrapper
-
Creates new
ConfigWrapperfrom provided path to config(-s) directory, config file name without extension and default config map (default config values) - of(Object) - Static method in record class com.github.nedelis.jc4j.jsonvalue.JSONValue
-
Shortcut for JSONValue constructor
- OFF - Static variable in class com.github.nedelis.jc4j.logging.JC4JLogLevel
P
- Procedure - Interface in com.github.nedelis.jc4j.util
-
Allows to create procedures using lambda
- putAllInConfig(Map<String, JSONValue>) - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
Puts all provided values to the config.
- putAllInConfigAndSave(Map<String, JSONValue>) - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
Puts all provided values to the config and immediately saves changes to the config file
- putInConfig(String, JSONValue) - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
Puts provided value to the config under the given key.
- putInConfigAndSave(String, JSONValue) - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
This method puts provided value to the config under the given key and immediately saves changes to the config file
R
- register(String, IJSONValueType<T>) - Static method in class com.github.nedelis.jc4j.jsonvalue.JSONValueType
-
Registers a new IJSONValueType (puts it in
JSONValueType.TYPESand returns it)
S
- saveConfig() - Method in class com.github.nedelis.jc4j.ConfigWrapper
-
This method saves the
ConfigWrapper.configto the config file - setLogLevel(int) - Method in class com.github.nedelis.jc4j.logging.JC4JLoggerBuilder
-
Specifies the level of the logger (min level of the messages).
- setPathToLogFile(Path) - Method in class com.github.nedelis.jc4j.logging.JC4JLoggerBuilder
-
Specifies the path to the log file that will be stored
- setPattern(JC4JLoggerMessagePattern) - Method in class com.github.nedelis.jc4j.logging.JC4JLoggerBuilder
-
Specifies the message pattern of the logger.
- STR - Static variable in class com.github.nedelis.jc4j.jsonvalue.JSONValueType
T
- toJavaValue(IJSONValueType<T>) - Method in record class com.github.nedelis.jc4j.jsonvalue.JSONValue
-
Converting some json value into its representation in java; if value can't be converted, returns null
- toJavaValue(Object, IJSONValueType<T>) - Static method in class com.github.nedelis.jc4j.jsonvalue.JSONValueType
- toJavaValue(Object, T) - Static method in class com.github.nedelis.jc4j.jsonvalue.JSONValueType
-
This method tries to find correct JSONValueType for "T def" and converts given value to java value; If it can't find correct JSONValueType for "T def", then it'll issue a warning and return given default value
- toJavaValue(Object, T, IJSONValueType<T>) - Static method in class com.github.nedelis.jc4j.jsonvalue.JSONValueType
- toJavaValue(T) - Method in record class com.github.nedelis.jc4j.jsonvalue.JSONValue
-
Converting some json value into its representation in java; if value can't be converted, returns the given default value
- toString() - Method in record class com.github.nedelis.jc4j.jsonvalue.JSONValue
-
Returns a string representation of this record class.
- trace(String) - Method in class com.github.nedelis.jc4j.logging.JC4JLogger
- trace(String, Throwable) - Method in class com.github.nedelis.jc4j.logging.JC4JLogger
- TRACE - Static variable in class com.github.nedelis.jc4j.logging.JC4JLogLevel
V
- value() - Method in record class com.github.nedelis.jc4j.jsonvalue.JSONValue
-
Returns the value of the
valuerecord component.
W
- warn(String) - Method in class com.github.nedelis.jc4j.logging.JC4JLogger
- warn(String, Throwable) - Method in class com.github.nedelis.jc4j.logging.JC4JLogger
- WARN - Static variable in class com.github.nedelis.jc4j.logging.JC4JLogLevel
All Classes and Interfaces|All Packages
ConfigWrapper.getRawOrDefault(String, Object)instead