Package me.croabeast.file
Interface UnitMappable.Set<U extends ConfigurableUnit>
- Type Parameters:
U- the type of configurable unit stored in the set.
- All Superinterfaces:
BaseBuilder<UnitMappable.Set<U>>,Copyable<UnitMappable.Set<U>>,Iterable<Map.Entry<Integer,,Set<U>>> Map<Integer,,Set<U>> Mappable<U,,Set<U>, UnitMappable.Set<U>> Mappable.BaseSet<U,,UnitMappable.Set<U>> UnitMappable<U,Set<U>, UnitMappable.Set<U>>
- Enclosing interface:
UnitMappable<U extends ConfigurableUnit,C extends Collection<U>, UM extends UnitMappable<U, C, UM>>
public static interface UnitMappable.Set<U extends ConfigurableUnit>
extends UnitMappable<U,Set<U>,UnitMappable.Set<U>>, Mappable.BaseSet<U,UnitMappable.Set<U>>
A sub-interface of
UnitMappable specialized for set-backed collections.
This interface extends both UnitMappable and BaseSet, providing default
methods for retrieving the stored values as a Set. It is designed to be
directly instantiated via the static factory 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.UnitMappable
UnitMappable.List<U extends ConfigurableUnit>, UnitMappable.Set<U extends ConfigurableUnit> -
Method Summary
Modifier and TypeMethodDescription@NotNull UnitMappable.List<U> toList()Converts this set-based mappable into a list of configurable units.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
getStoredValuesMethods inherited from interface me.croabeast.file.UnitMappable
getUnit
-
Method Details
-
toList
Converts this set-based mappable into a list of configurable units.- Returns:
- a
UnitMappable.Listcontaining all the stored configurable units.
-