Index

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

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.StringReplacer
The dummy replacer that does nothing

G

generate() - Method in class me.hsgamer.hscore.common.CachedValue
Generate the value
get() - Method in class me.hsgamer.hscore.common.CachedValue
 
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
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

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(BiFunction<String, UUID, String>) - Static method in interface me.hsgamer.hscore.common.StringReplacer
of(UnaryOperator<String>) - Static method in interface me.hsgamer.hscore.common.StringReplacer
of(UnaryOperator<String>, BiFunction<String, UUID, String>) - Static method in interface me.hsgamer.hscore.common.StringReplacer
of(Supplier<T>) - Static method in class me.hsgamer.hscore.common.CachedValue
Create a new cached value from a supplier
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.StringReplacer
Replace a string
replace(String, UUID) - Method in interface me.hsgamer.hscore.common.StringReplacer
Replace a string based on the unique id
replace(String, UUID, Collection<? extends StringReplacer>) - Static method in interface me.hsgamer.hscore.common.StringReplacer
Replace a string based on the unique id
replace(String, UUID, StringReplacer...) - Static method in interface me.hsgamer.hscore.common.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
StringReplacer - Interface in me.hsgamer.hscore.common
A simple interface for String replacement
StringUtils - Class in me.hsgamer.hscore.common
Methods for String

T

tryReplace(String, UUID) - Method in interface me.hsgamer.hscore.common.StringReplacer
Try to replace a string based on the unique id.

V

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