C F G I K R S W 
All Classes All Packages

C

ca.retrylife.filterlib - package ca.retrylife.filterlib
 

F

Filter<T> - Class in ca.retrylife.filterlib
Filter is a utility class for easily sorting and selecting a single object or a group of objects based on simple rules.
Filter(List<T>) - Constructor for class ca.retrylife.filterlib.Filter
Create a Filter from a list of items
Filter(T[]) - Constructor for class ca.retrylife.filterlib.Filter
Create a Filter from an array of items
forEach(BiConsumer<T, Double>) - Method in class ca.retrylife.filterlib.Filter
Iterate over each item, along with it's score
forEach(Consumer<T>) - Method in class ca.retrylife.filterlib.Filter
Iterate over each item
forEachAboveThreshold(double, BiConsumer<T, Double>) - Method in class ca.retrylife.filterlib.Filter
Iterate over each item with a score greater than the threshold
forEachAboveThreshold(double, Consumer<T>) - Method in class ca.retrylife.filterlib.Filter
Iterate over each item with a score greater than the threshold
forEachBelowThreshold(double, BiConsumer<T, Double>) - Method in class ca.retrylife.filterlib.Filter
Iterate over each item with a score less than the threshold
forEachBelowThreshold(double, Consumer<T>) - Method in class ca.retrylife.filterlib.Filter
Iterate over each item with a score less than the threshold
forEachRemoved(Consumer<T>) - Method in class ca.retrylife.filterlib.Filter
Iterate over each item that has been removed from the Filter

G

getAboveThreshold(double) - Method in class ca.retrylife.filterlib.Filter
Get an ImmutableList of items that have a score greater than the threshold
getBelowThreshold(double) - Method in class ca.retrylife.filterlib.Filter
Get an ImmutableList of items that have a score less than the threshold
getBest() - Method in class ca.retrylife.filterlib.Filter
Get the best item, or null if none matches that criteria
getCount() - Method in class ca.retrylife.filterlib.Filter
Get the number of items that have not been removed
getOrdered() - Method in class ca.retrylife.filterlib.Filter
Get an ordered ImmutableList of all items, sorted by score
getRemaining() - Method in class ca.retrylife.filterlib.Filter
Get an ImmutableList of all remaining items
getRemoved() - Method in class ca.retrylife.filterlib.Filter
Get an ImmutableList of all removed items
getWorst() - Method in class ca.retrylife.filterlib.Filter
Get the worst item, or null if none matches that criteria

I

isEmpty() - Method in class ca.retrylife.filterlib.Filter
Get if the Filter has no items left in it

K

keepOnly(BiFunction<T, Double, Boolean>) - Method in class ca.retrylife.filterlib.Filter
Keep any marked items based on their score, remove the rest
keepOnly(Function<T, Boolean>) - Method in class ca.retrylife.filterlib.Filter
Keep only marked items, remove the rest

R

remove(BiFunction<T, Double, Boolean>) - Method in class ca.retrylife.filterlib.Filter
Remove any marked items based on their score
remove(Function<T, Boolean>) - Method in class ca.retrylife.filterlib.Filter
Remove any marked items
remove(T) - Method in class ca.retrylife.filterlib.Filter
Remove a single item
reset() - Method in class ca.retrylife.filterlib.Filter
Resets all scores, and re-adds removed items

S

score(BiFunction<T, Double, Double>) - Method in class ca.retrylife.filterlib.Filter
Assign a score for each item, based on it's previous score
score(Function<T, Double>) - Method in class ca.retrylife.filterlib.Filter
Assign a score for each item

W

withBest(Consumer<T>) - Method in class ca.retrylife.filterlib.Filter
Pass the best item (item with the highest score) to a function
withWorst(Consumer<T>) - Method in class ca.retrylife.filterlib.Filter
Pass the worst item (item with the lowest score) to a function
C F G I K R S W 
All Classes All Packages