Interface DependableExpansionSortAndFilter
- All Superinterfaces:
Function<Map<String,
,ExpansionClassLoader>, Map<String, ExpansionClassLoader>> UnaryOperator<Map<String,
ExpansionClassLoader>>
public interface DependableExpansionSortAndFilter
extends UnaryOperator<Map<String,ExpansionClassLoader>>
Sort and filter the expansions based on their dependencies
-
Method Summary
Modifier and TypeMethodDescriptiondefault Map<String,
ExpansionClassLoader> apply
(Map<String, ExpansionClassLoader> original) getDependencies
(ExpansionClassLoader loader) Get the dependencies of the expansiondefault Comparator<Map.Entry<String,
ExpansionClassLoader>> Get the comparator for the dependenciesGet the soft dependencies of the expansion.
-
Method Details
-
getDependencies
Get the dependencies of the expansion- Parameters:
loader
- the loader- Returns:
- the dependencies
-
getSoftDependencies
Get the soft dependencies of the expansion. This will not throw an exception if the soft dependency is not loaded.- Parameters:
loader
- the loader- Returns:
- the soft dependencies
-
getDependencyComparator
Get the comparator for the dependencies- Returns:
- the comparator
-
apply
- Specified by:
apply
in interfaceFunction<Map<String,
ExpansionClassLoader>, Map<String, ExpansionClassLoader>>
-