TransformingObjectSet
class TransformingObjectSet<O, M>(fromSet: ObjectSet<O>, toTransformer: (O) -> M?, fromTransformer: (M) -> O?) : ObjectSet<M>
A specialized implementation of ObjectSet that transforms elements between two types, O
and M
, using the provided transformation functions. This enables a dynamic view of a set where elements are transformed on-the-fly during iteration or when performing operations.
Parameters
O
The type of the elements in the underlying set.
M
The type of the transformed elements in this set.
Constructors
Properties
Functions
Link copied to clipboard
Adds all transformed elements from the given collection to the underlying set.
Link copied to clipboard
Link copied to clipboard
Checks if the transformed set contains all elements in the specified collection.
Link copied to clipboard
Link copied to clipboard
fun <E> Iterable<E>.joinToComponentNewLine(linePrefix: Component = PREFIX, formatter: (E) -> Component): Component
Link copied to clipboard
Removes all transformed elements in the given collection from the underlying set.
Link copied to clipboard
Retains only the transformed elements in the given collection in the underlying set.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard