Index

A C D G I M N O P R S T V 
All Classes and Interfaces|All Packages

A

accept(T) - Method in interface me.hsgamer.hscore.common.consumer.ThrowableConsumer
 
accept(T, U) - Method in interface me.hsgamer.hscore.common.consumer.ThrowableBiConsumer
 
acceptSafe(T) - Method in interface me.hsgamer.hscore.common.consumer.ThrowableConsumer
Accept with exception
acceptSafe(T, U) - Method in interface me.hsgamer.hscore.common.consumer.ThrowableBiConsumer
Accept with exception
apply(T) - Method in interface me.hsgamer.hscore.common.function.ThrowableFunction
 
apply(T, U) - Method in interface me.hsgamer.hscore.common.function.ThrowableBiFunction
 
applySafe(T) - Method in interface me.hsgamer.hscore.common.function.ThrowableFunction
Apply with throwable
applySafe(T, U) - Method in interface me.hsgamer.hscore.common.function.ThrowableBiFunction
Apply with throwable

C

CachedValue<T> - Class in me.hsgamer.hscore.common
The base class for caching value
CachedValue() - Constructor for class me.hsgamer.hscore.common.CachedValue
 
castOptionalStringObjectMap(Object) - Static method in class me.hsgamer.hscore.common.MapUtils
Cast to the optional string-object map
castOptionalStringObjectMap(Object, boolean) - Static method in class me.hsgamer.hscore.common.MapUtils
Cast to the optional string-object map
clearCache() - Method in class me.hsgamer.hscore.common.CachedValue
Clear the cached value
CollectionUtils - Class in me.hsgamer.hscore.common
Methods on collections
containsAnyKey(Map<K, ?>, K...) - Static method in class me.hsgamer.hscore.common.MapUtils
Check if the map contains any of the keys
createStringListFromObject(Object) - Static method in class me.hsgamer.hscore.common.CollectionUtils
Create a list of string
createStringListFromObject(Object, boolean) - Static method in class me.hsgamer.hscore.common.CollectionUtils
Create a list of string

D

DUMMY - Static variable in interface me.hsgamer.hscore.common.interfaces.StringReplacer
The dummy replacer that does nothing

G

generate() - Method in class me.hsgamer.hscore.common.CachedValue
Generate the value
generate() - Method in class me.hsgamer.hscore.common.supplier.StickySupplier
 
get() - Method in class me.hsgamer.hscore.common.supplier.StickySupplier
 
get() - Method in interface me.hsgamer.hscore.common.supplier.ThrowableSupplier
 
getIfFound(Map<K, V>, K...) - Static method in class me.hsgamer.hscore.common.MapUtils
Get the value given the key from the map
getIfFoundOrDefault(Map<K, V>, V, K...) - Static method in class me.hsgamer.hscore.common.MapUtils
Get the value given the key from the map
getKey() - Method in class me.hsgamer.hscore.common.Pair
Get the key
getNumber(String) - Static method in class me.hsgamer.hscore.common.Validate
Convert to number
getSafe() - Method in interface me.hsgamer.hscore.common.supplier.ThrowableSupplier
Get a result with exceptions
getValue() - Method in class me.hsgamer.hscore.common.CachedValue
Get the cached value or generate one if the cache is null
getValue() - Method in class me.hsgamer.hscore.common.Pair
Get the value

I

isClassLoaded(String) - Static method in class me.hsgamer.hscore.common.Validate
Check if the class is loaded
isConstructorLoaded(String, Class<?>...) - Static method in class me.hsgamer.hscore.common.Validate
Check if the constructor is loaded
isMethodLoaded(String, String, Class<?>...) - Static method in class me.hsgamer.hscore.common.Validate
Check if the method is loaded
isNullOrEmpty(String) - Static method in class me.hsgamer.hscore.common.Validate
Check if it's null or empty
isNullOrEmpty(Collection<?>) - Static method in class me.hsgamer.hscore.common.Validate
Check if it's null or empty
isValidBase64(String) - Static method in class me.hsgamer.hscore.common.Validate
Check if the string is a valid Base64 string
isValidInteger(String) - Static method in class me.hsgamer.hscore.common.Validate
Check if the string is a valid number
isValidPositiveNumber(String) - Static method in class me.hsgamer.hscore.common.Validate
Check if it's a positive number
isValidURL(String) - Static method in class me.hsgamer.hscore.common.Validate
Check if the string is a valid URL
isValidUUID(String) - Static method in class me.hsgamer.hscore.common.Validate
Check if the string is a valid UUID

M

MapUtils - Class in me.hsgamer.hscore.common
Methods on Map
me.hsgamer.hscore.common - package me.hsgamer.hscore.common
Contains the utilities for common use
me.hsgamer.hscore.common.consumer - package me.hsgamer.hscore.common.consumer
Contains the implementation of Consumer
me.hsgamer.hscore.common.function - package me.hsgamer.hscore.common.function
Contains the implementation of Function
me.hsgamer.hscore.common.interfaces - package me.hsgamer.hscore.common.interfaces
Contains common interfaces
me.hsgamer.hscore.common.supplier - package me.hsgamer.hscore.common.supplier
Contains the implementation of Supplier

N

normalizeHex(String) - Static method in class me.hsgamer.hscore.common.StringUtils
Normalize the raw hex string to the 6-digit hex string

O

of(Map.Entry<K, V>) - Static method in class me.hsgamer.hscore.common.Pair
Create a new pair from the map entry
of(K, V) - Static method in class me.hsgamer.hscore.common.Pair
Create a new pair

P

Pair<K,V> - Class in me.hsgamer.hscore.common
Store the key and the value in pair
pickRandom(Collection<T>) - Static method in class me.hsgamer.hscore.common.CollectionUtils
Pick a random element from the collection
pickRandom(Collection<T>, Predicate<T>) - Static method in class me.hsgamer.hscore.common.CollectionUtils
Pick a random element from the collection
pickRandom(T[]) - Static method in class me.hsgamer.hscore.common.CollectionUtils
Pick a random element from the array
pickRandom(T[], Predicate<T>) - Static method in class me.hsgamer.hscore.common.CollectionUtils
Pick a random element from the array

R

repeatCollection(Collection<T>, int) - Static method in class me.hsgamer.hscore.common.CollectionUtils
Repeat the collection
repeatElement(Collection<T>, int) - Static method in class me.hsgamer.hscore.common.CollectionUtils
Repeat the element of the collection
replace(String) - Method in interface me.hsgamer.hscore.common.interfaces.StringReplacer
Replace a string
replace(String, UUID) - Method in interface me.hsgamer.hscore.common.interfaces.StringReplacer
Replace a string based on the unique id
replace(String, UUID, Collection<? extends StringReplacer>) - Static method in interface me.hsgamer.hscore.common.interfaces.StringReplacer
Replace a string based on the unique id
replace(String, UUID, StringReplacer...) - Static method in interface me.hsgamer.hscore.common.interfaces.StringReplacer
Replace a string based on the unique id
replaceChar(char, char, String, Map<Character, Supplier<Character>>) - Static method in class me.hsgamer.hscore.common.StringUtils
Replace all alternative character format to the final characters.
replaceHex(char, Function<char[], String>, String) - Static method in class me.hsgamer.hscore.common.StringUtils
Replace HEX string with the replacer.
replacePattern(String, Pattern, Function<Matcher, String>) - Static method in class me.hsgamer.hscore.common.StringUtils
Replace the string given the pattern and the replacement function
reverse(Collection<T>) - Static method in class me.hsgamer.hscore.common.CollectionUtils
Reverse a collection
rotate(Collection<T>, int) - Static method in class me.hsgamer.hscore.common.CollectionUtils
Rotate a collection

S

setValue(V) - Method in class me.hsgamer.hscore.common.Pair
Set the value
splitAll(String, Collection<String>) - Static method in class me.hsgamer.hscore.common.CollectionUtils
Split the strings from the string list
StickySupplier<T> - Class in me.hsgamer.hscore.common.supplier
a class that uses Supplier and caches it to use after.
StickySupplier(Supplier<T>) - Constructor for class me.hsgamer.hscore.common.supplier.StickySupplier
ctor.
StickySupplier(T) - Constructor for class me.hsgamer.hscore.common.supplier.StickySupplier
ctor.
StringReplacer - Interface in me.hsgamer.hscore.common.interfaces
A simple interface for String replacement
StringUtils - Class in me.hsgamer.hscore.common
Methods for String

T

ThrowableBiConsumer<T,U> - Interface in me.hsgamer.hscore.common.consumer
BiConsumer but ignores exceptions
ThrowableBiFunction<T,U,R> - Interface in me.hsgamer.hscore.common.function
BiFunction but returns null if there is an exception
ThrowableConsumer<T> - Interface in me.hsgamer.hscore.common.consumer
Consumer but ignores exceptions
ThrowableFunction<T,R> - Interface in me.hsgamer.hscore.common.function
Function but returns null if there is an exception
ThrowableSupplier<T> - Interface in me.hsgamer.hscore.common.supplier
Supplier but returns null if there is an exception

V

Validate - Class in me.hsgamer.hscore.common
Methods to validate
A C D G I M N O P R S T V 
All Classes and Interfaces|All Packages