Package me.croabeast.file
Interface SectionMappable.List
- All Superinterfaces:
BaseBuilder<SectionMappable.List>,Copyable<SectionMappable.List>,Iterable<Map.Entry<Integer,,List<org.bukkit.configuration.ConfigurationSection>>> Map<Integer,,List<org.bukkit.configuration.ConfigurationSection>> Mappable<org.bukkit.configuration.ConfigurationSection,,List<org.bukkit.configuration.ConfigurationSection>, SectionMappable.List> Mappable.BaseList<org.bukkit.configuration.ConfigurationSection,,SectionMappable.List> SectionMappable<List<org.bukkit.configuration.ConfigurationSection>,SectionMappable.List>
- Enclosing interface:
SectionMappable<C extends Collection<org.bukkit.configuration.ConfigurationSection>,S extends SectionMappable<C, S>>
public static interface SectionMappable.List
extends SectionMappable<List<org.bukkit.configuration.ConfigurationSection>,SectionMappable.List>, Mappable.BaseList<org.bukkit.configuration.ConfigurationSection,SectionMappable.List>
Represents a
SectionMappable implementation backed by a List.
This sub-interface extends both SectionMappable and Mappable.BaseList to provide default methods
for converting and transforming configuration sections into lists. No additional implementation is required
beyond instantiating it via the static methods.
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.croabeast.file.Mappable
Mappable.BaseList<T,B extends Mappable.BaseList<T, B>>, Mappable.BaseSet<T, B extends Mappable.BaseSet<T, B>> Nested classes/interfaces inherited from interface me.croabeast.file.SectionMappable
SectionMappable.List, SectionMappable.Set -
Method Summary
Modifier and TypeMethodDescription@NotNull SectionMappable.SettoSet()Converts this list-based mappable into a set-based mappable.<U extends ConfigurableUnit>
UnitMappable.List<U> Transforms the containedConfigurationSectionelements into aUnitMappable.Listby applying the provided function.Methods inherited from interface me.croabeast.common.builder.BaseBuilder
instanceMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from interface me.croabeast.file.Mappable
filter, getStoredValues, iterator, order, orderMethods inherited from interface me.croabeast.file.Mappable.BaseList
getStoredValues
-
Method Details
-
toUnits
@NotNull <U extends ConfigurableUnit> UnitMappable.List<U> toUnits(Function<org.bukkit.configuration.ConfigurationSection, U> function) Transforms the containedConfigurationSectionelements into aUnitMappable.Listby applying the provided function.- Type Parameters:
U- the type of the resultingConfigurableUnit- Parameters:
function- the function to transform each configuration section into aConfigurableUnit- Returns:
- a
UnitMappable.Listcontaining the transformed elements.
-
toSet
Converts this list-based mappable into a set-based mappable.- Returns:
- a
SectionMappable.Setrepresentation of this mappable.
-