Index
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
- combine(Collection<? extends StringReplacer>) - Static method in interface me.hsgamer.hscore.common.StringReplacer
-
Combine multiple string replacers
- combine(StringReplacer...) - Static method in interface me.hsgamer.hscore.common.StringReplacer
-
Combine multiple string replacers
- 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
- deepReplace(Object, UnaryOperator<String>) - Static method in class me.hsgamer.hscore.common.StringUtils
-
Replace the string in the object
- 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
- getBase64(String) - Static method in class me.hsgamer.hscore.common.Validate
-
Convert to Base64
- 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
- getOptional(Map<K, V>, K...) - Static method in class me.hsgamer.hscore.common.MapUtils
-
Get the value given the key from the map
- getURL(String) - Static method in class me.hsgamer.hscore.common.Validate
-
Convert to URL
- getUUID(String) - Static method in class me.hsgamer.hscore.common.Validate
-
Convert to UUID
- 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
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
-
Create a new
StringReplacerfrom aUnaryOperatorasStringReplacer.replace(String)and aBiFunctionasStringReplacer.replace(String, UUID) - 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
- 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.
- replaceOrDefault(String, UUID, String) - Method in interface me.hsgamer.hscore.common.StringReplacer
-
Replace a string or return the default value
- replaceOrOriginal(String, UUID) - Method in interface me.hsgamer.hscore.common.StringReplacer
-
Replace a string or return the original value
- 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
All Classes and Interfaces|All Packages