Package me.croabeast.file
Interface SectionMappable.Set
- All Superinterfaces:
BaseBuilder<SectionMappable.Set>,Copyable<SectionMappable.Set>,Iterable<Map.Entry<Integer,,Set<org.bukkit.configuration.ConfigurationSection>>> Map<Integer,,Set<org.bukkit.configuration.ConfigurationSection>> Mappable<org.bukkit.configuration.ConfigurationSection,,Set<org.bukkit.configuration.ConfigurationSection>, SectionMappable.Set> Mappable.BaseSet<org.bukkit.configuration.ConfigurationSection,,SectionMappable.Set> SectionMappable<Set<org.bukkit.configuration.ConfigurationSection>,SectionMappable.Set>
- Enclosing interface:
SectionMappable<C extends Collection<org.bukkit.configuration.ConfigurationSection>,S extends SectionMappable<C, S>>
public static interface SectionMappable.Set
extends SectionMappable<Set<org.bukkit.configuration.ConfigurationSection>,SectionMappable.Set>, Mappable.BaseSet<org.bukkit.configuration.ConfigurationSection,SectionMappable.Set>
Represents a
SectionMappable implementation backed by a Set.
This sub-interface extends both SectionMappable and Mappable.BaseSet to provide default methods
for converting and transforming configuration sections into sets. 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.ListtoList()Converts this set-based mappable into a list-based mappable.<U extends ConfigurableUnit>
UnitMappable.Set<U> Transforms the containedConfigurationSectionelements into aUnitMappable.Setby 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.BaseSet
getStoredValues
-
Method Details
-
toUnits
@NotNull <U extends ConfigurableUnit> UnitMappable.Set<U> toUnits(Function<org.bukkit.configuration.ConfigurationSection, U> function) Transforms the containedConfigurationSectionelements into aUnitMappable.Setby 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.Setcontaining the transformed elements.
-
toList
Converts this set-based mappable into a list-based mappable.- Returns:
- a
SectionMappable.Listrepresentation of this mappable.
-