Index

A B C D E F G I K L M N R S U V 
All Classes and Interfaces|All Packages|Constant Field Values

A

apply(K) - Method in class io.github.projectunified.valuevenue.core.CachedValueGenerator
Returns the active final values for the given key, in the order of its source value stream.
apply(K) - Method in interface io.github.projectunified.valuevenue.core.ValueSource
The source values exposed for the key: the stream of the key, without the inactive values.
ASCENDING - Enum constant in enum class io.github.projectunified.valuevenue.number.Direction
Step from the start to a higher end.
AUTO - Enum constant in enum class io.github.projectunified.valuevenue.number.Direction
Step in the direction the bounds tell, so a start higher than the end steps down.

B

BukkitPlayerSource<K> - Class in io.github.projectunified.valuevenue.bukkit
A ValueSource whose values are the players of the server.
BukkitPlayerSource(boolean) - Constructor for class io.github.projectunified.valuevenue.bukkit.BukkitPlayerSource
Creates the source with DEFAULT_KEY, without a filter.
BukkitPlayerSource(boolean, BiPredicate<OfflinePlayer, K>) - Constructor for class io.github.projectunified.valuevenue.bukkit.BukkitPlayerSource
Creates the source with DEFAULT_KEY.
BukkitPlayerSource(boolean, Predicate<OfflinePlayer>, BiPredicate<OfflinePlayer, K>) - Constructor for class io.github.projectunified.valuevenue.bukkit.BukkitPlayerSource
Creates the source with DEFAULT_KEY.
BukkitPlayerSource(String, boolean, Predicate<OfflinePlayer>, BiPredicate<OfflinePlayer, K>) - Constructor for class io.github.projectunified.valuevenue.bukkit.BukkitPlayerSource
Creates the source.
BYTE - Static variable in class io.github.projectunified.valuevenue.number.NumberType
The byte type.

C

CachedValueGenerator<K,SV,FV> - Class in io.github.projectunified.valuevenue.core
Generates the final values for a key from source values, mapping and caching each source value once.
CachedValueGenerator() - Constructor for class io.github.projectunified.valuevenue.core.CachedValueGenerator
 
create(ValueSource<K, SV>, BiFunction<SV, Function<String, Object>, FV>) - Static method in class io.github.projectunified.valuevenue.core.CachedValueGenerator
Creates a generator from a source and a conversion, exposing every final value to every key.
create(ValueSource<K, SV>, BiFunction<SV, Function<String, Object>, FV>, BiPredicate<FV, K>) - Static method in class io.github.projectunified.valuevenue.core.CachedValueGenerator
Creates a generator from a source and a conversion.

D

DEFAULT_KEY - Static variable in class io.github.projectunified.valuevenue.bukkit.BukkitPlayerSource
The key used when none is given.
DEFAULT_KEY - Static variable in class io.github.projectunified.valuevenue.common.EnumValueSource
The key used when none is given.
DEFAULT_KEY - Static variable in class io.github.projectunified.valuevenue.common.KeyValueSource
The key used when none is given.
DEFAULT_KEY - Static variable in class io.github.projectunified.valuevenue.common.SimpleValueSource
The key used when none is given.
DEFAULT_KEY - Static variable in class io.github.projectunified.valuevenue.common.StringSplitSource
The key used when none is given.
DEFAULT_KEY - Static variable in class io.github.projectunified.valuevenue.number.DynamicNumberValueSource
The key used when none is given.
DEFAULT_SPLIT_PATTERN - Static variable in class io.github.projectunified.valuevenue.common.StringSplitSource
The split pattern used when none is given: one value per line.
DESCENDING - Enum constant in enum class io.github.projectunified.valuevenue.number.Direction
Step from the start to a lower end.
Direction - Enum Class in io.github.projectunified.valuevenue.number
The direction a number range steps in.
DOUBLE - Static variable in class io.github.projectunified.valuevenue.number.NumberType
The double type.
DynamicNumberValueSource<K,N> - Class in io.github.projectunified.valuevenue.number
A ValueSource whose values are a range of numbers, with the start, the end and the step of the range selected for each key.
DynamicNumberValueSource(NumberType<N>) - Constructor for class io.github.projectunified.valuevenue.number.DynamicNumberValueSource
Creates the source with DynamicNumberValueSource.DEFAULT_KEY, including the end.
DynamicNumberValueSource(NumberType<N>, String, boolean, Direction) - Constructor for class io.github.projectunified.valuevenue.number.DynamicNumberValueSource
Creates the source.

E

EnumValueSource<K,SV> - Class in io.github.projectunified.valuevenue.common
A ValueSource whose source values are all constants of an enum, exposed as a single variable.
EnumValueSource(Class<SV>) - Constructor for class io.github.projectunified.valuevenue.common.EnumValueSource
Creates the source with EnumValueSource.DEFAULT_KEY.
EnumValueSource(String, Class<SV>) - Constructor for class io.github.projectunified.valuevenue.common.EnumValueSource
Creates the source.

F

filter(Stream<OfflinePlayer>, K) - Method in class io.github.projectunified.valuevenue.bukkit.BukkitPlayerSource
Applies the filter of the source to the players of the key.
FLOAT - Static variable in class io.github.projectunified.valuevenue.number.NumberType
The float type.
format(N) - Method in class io.github.projectunified.valuevenue.number.NumberType
The plain text of a number: no scientific notation, whatever its type.

G

get(K) - Method in class io.github.projectunified.valuevenue.core.ValueVenue
Returns the values stored for the key by the last ValueVenue.update(Object) call.
getCachedValues() - Method in class io.github.projectunified.valuevenue.core.CachedValueGenerator
Returns a snapshot of the cache as source value to final value, including entries whose source value is not active and entries created by a key.
getEnd(K) - Method in class io.github.projectunified.valuevenue.number.DynamicNumberValueSource
The last value of the range of the key, or its bound when the end is not included.
getEnd(K) - Method in class io.github.projectunified.valuevenue.number.NumberValueSource
 
getSourceValueStream() - Method in class io.github.projectunified.valuevenue.bukkit.BukkitPlayerSource
 
getSourceValueStream() - Method in class io.github.projectunified.valuevenue.common.EnumValueSource
 
getSourceValueStream() - Method in class io.github.projectunified.valuevenue.common.KeyValueSource
 
getSourceValueStream() - Method in class io.github.projectunified.valuevenue.common.SimpleValueSource
 
getSourceValueStream() - Method in class io.github.projectunified.valuevenue.core.CachedValueGenerator
All source values the generator knows without a key, so CachedValueGenerator.update() can create their cache entries upfront.
getSourceValueStream() - Method in interface io.github.projectunified.valuevenue.core.ValueSource
All source values that do not depend on a key.
getSourceValueStream() - Method in class io.github.projectunified.valuevenue.number.NumberValueSource
 
getSourceValueStream(K) - Method in class io.github.projectunified.valuevenue.bukkit.BukkitPlayerSource
 
getSourceValueStream(K) - Method in class io.github.projectunified.valuevenue.common.StringSplitSource
 
getSourceValueStream(K) - Method in class io.github.projectunified.valuevenue.core.CachedValueGenerator
Source values to expose for the given key.
getSourceValueStream(K) - Method in interface io.github.projectunified.valuevenue.core.ValueSource
Source values to expose for the given key.
getSourceValueStream(K) - Method in class io.github.projectunified.valuevenue.number.DynamicNumberValueSource
 
getStart(K) - Method in class io.github.projectunified.valuevenue.number.DynamicNumberValueSource
The first value of the range of the key.
getStart(K) - Method in class io.github.projectunified.valuevenue.number.NumberValueSource
 
getStep(K) - Method in class io.github.projectunified.valuevenue.number.DynamicNumberValueSource
The distance between two values of the range of the key, positive.
getStep(K) - Method in class io.github.projectunified.valuevenue.number.NumberValueSource
 

I

INT - Static variable in class io.github.projectunified.valuevenue.number.NumberType
The int type.
io.github.projectunified.valuevenue.bukkit - package io.github.projectunified.valuevenue.bukkit
 
io.github.projectunified.valuevenue.common - package io.github.projectunified.valuevenue.common
 
io.github.projectunified.valuevenue.core - package io.github.projectunified.valuevenue.core
 
io.github.projectunified.valuevenue.number - package io.github.projectunified.valuevenue.number
 
isSourceValueActivated(OfflinePlayer) - Method in class io.github.projectunified.valuevenue.bukkit.BukkitPlayerSource
 
isSourceValueActivated(SV) - Method in class io.github.projectunified.valuevenue.core.CachedValueGenerator
Whether a source value is currently active.
isSourceValueActivated(SV) - Method in interface io.github.projectunified.valuevenue.core.ValueSource
Whether a source value is currently active.
isValueActivated(FV, K) - Method in class io.github.projectunified.valuevenue.core.CachedValueGenerator
Whether a final value is exposed for the given key.

K

KeyValueSource<K> - Class in io.github.projectunified.valuevenue.common
A ValueSource whose values are maps, exposed as the <key>_<name> variables.
KeyValueSource(String, Collection<? extends Map<String, Object>>) - Constructor for class io.github.projectunified.valuevenue.common.KeyValueSource
Creates the stream.
KeyValueSource(Collection<? extends Map<String, Object>>) - Constructor for class io.github.projectunified.valuevenue.common.KeyValueSource
Creates the stream with KeyValueSource.DEFAULT_KEY.

L

LONG - Static variable in class io.github.projectunified.valuevenue.number.NumberType
The long type.

M

mapToFinalValue(SV) - Method in class io.github.projectunified.valuevenue.core.CachedValueGenerator
Maps a source value to its final value.

N

NumberType<N> - Class in io.github.projectunified.valuevenue.number
The numeric types a number source can produce, with the arithmetic of the type.
NumberValueSource<K,N> - Class in io.github.projectunified.valuevenue.number
A ValueSource whose values are a fixed range of numbers, stepped from the start to the end.
NumberValueSource(NumberType<N>, Number, Number, Number) - Constructor for class io.github.projectunified.valuevenue.number.NumberValueSource
Creates the source with DynamicNumberValueSource.DEFAULT_KEY, including the end.
NumberValueSource(NumberType<N>, Number, Number, Number, boolean) - Constructor for class io.github.projectunified.valuevenue.number.NumberValueSource
Creates the source with DynamicNumberValueSource.DEFAULT_KEY.
NumberValueSource(NumberType<N>, Number, Number, Number, boolean, Direction) - Constructor for class io.github.projectunified.valuevenue.number.NumberValueSource
Creates the source with DynamicNumberValueSource.DEFAULT_KEY.
NumberValueSource(NumberType<N>, String, Number, Number, Number, boolean, Direction) - Constructor for class io.github.projectunified.valuevenue.number.NumberValueSource
Creates the source.

R

replace(String, String) - Method in class io.github.projectunified.valuevenue.common.StringSplitSource
 
replace(String, Map<String, Object>) - Method in class io.github.projectunified.valuevenue.common.KeyValueSource
 
replace(String, N) - Method in class io.github.projectunified.valuevenue.number.DynamicNumberValueSource
 
replace(String, OfflinePlayer) - Method in class io.github.projectunified.valuevenue.bukkit.BukkitPlayerSource
 
replace(String, SV) - Method in class io.github.projectunified.valuevenue.common.EnumValueSource
 
replace(String, SV) - Method in interface io.github.projectunified.valuevenue.core.ValueSource
Resolves a variable of the source value.
replace(String, V) - Method in class io.github.projectunified.valuevenue.common.SimpleValueSource
 
replaceVariable(String, OfflinePlayer) - Method in class io.github.projectunified.valuevenue.bukkit.BukkitPlayerSource
Resolves a player variable, the part of <key>_<variable> after the prefix.

S

SHORT - Static variable in class io.github.projectunified.valuevenue.number.NumberType
The short type.
SimpleValueSource<K,V> - Class in io.github.projectunified.valuevenue.common
A ValueSource whose values are a fixed list of values, exposed as a single variable.
SimpleValueSource(String, Collection<V>, Function<V, Object>) - Constructor for class io.github.projectunified.valuevenue.common.SimpleValueSource
Creates the source.
SimpleValueSource(Collection<V>, Function<V, Object>) - Constructor for class io.github.projectunified.valuevenue.common.SimpleValueSource
Creates the source with SimpleValueSource.DEFAULT_KEY.
StringSplitSource<K> - Class in io.github.projectunified.valuevenue.common
A ValueSource whose values are the pieces of a string, e.g. the lines of a setting.
StringSplitSource(String, Function<K, String>) - Constructor for class io.github.projectunified.valuevenue.common.StringSplitSource
StringSplitSource(String, Function<K, String>, Pattern) - Constructor for class io.github.projectunified.valuevenue.common.StringSplitSource
Creates the source.
StringSplitSource(Function<K, String>) - Constructor for class io.github.projectunified.valuevenue.common.StringSplitSource
StringSplitSource(Function<K, String>, Pattern) - Constructor for class io.github.projectunified.valuevenue.common.StringSplitSource
Creates the source with StringSplitSource.DEFAULT_KEY.

U

update() - Method in class io.github.projectunified.valuevenue.core.CachedValueGenerator
Creates the cache entries of all common source values and refreshes the activation state of every cached entry, including entries created lazily for a key.
update(K) - Method in class io.github.projectunified.valuevenue.core.ValueVenue
Generates the values of the key and stores them, replacing any previous values.

V

valueOf(String) - Static method in enum class io.github.projectunified.valuevenue.number.Direction
Returns the enum constant of this class with the specified name.
values() - Static method in enum class io.github.projectunified.valuevenue.number.Direction
Returns an array containing the constants of this enum class, in the order they are declared.
values(Number, Number, Number, boolean, Direction) - Method in class io.github.projectunified.valuevenue.number.NumberType
The values of a range, from the start to the end.
ValueSource<K,SV> - Interface in io.github.projectunified.valuevenue.core
The source values a value generator works on, before they are turned into final values.
ValueVenue<K,V> - Class in io.github.projectunified.valuevenue.core
Holds the values generated for each key.
ValueVenue(Function<K, List<V>>) - Constructor for class io.github.projectunified.valuevenue.core.ValueVenue
Creates a venue whose keys are updated through ValueVenue.update(Object).
A B C D E F G I K L M N R S U V 
All Classes and Interfaces|All Packages|Constant Field Values