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