Class MapFactories
java.lang.Object
org.spongepowered.configurate.util.MapFactories
Default implementations of
MapFactory
.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic MapFactory
Returns aMapFactory
which creates maps which are sorted by insertion order.static MapFactory
sorted
(Comparator<Object> comparator) Returns aMapFactory
which creates maps which are sorted using the given comparator.static MapFactory
Returns aMapFactory
which creates maps which are naturally sorted.static MapFactory
Returns aMapFactory
which creates maps without an order.
-
Method Details
-
unordered
Returns aMapFactory
which creates maps without an order.- Returns:
- a map factory which produces unordered maps
- Since:
- 4.0.0
-
sorted
Returns aMapFactory
which creates maps which are sorted using the given comparator.- Parameters:
comparator
- the comparator used to sort the map keys- Returns:
- a map factory which produces sorted maps
- Since:
- 4.0.0
-
sortedNatural
Returns aMapFactory
which creates maps which are naturally sorted.- Returns:
- a map factory which produces naturally sorted maps
- Since:
- 4.0.0
- See Also:
-
insertionOrdered
Returns aMapFactory
which creates maps which are sorted by insertion order.- Returns:
- a map factory which produces maps sorted by insertion order
- Since:
- 4.0.0
-