Class CollectionDataKey<T>
java.lang.Object
com.vladsch.flexmark.util.data.DataKeyBase<Collection<T>>
com.vladsch.flexmark.util.data.DataKey<Collection<T>>
com.vladsch.flexmark.experimental.util.data.CollectionDataKey<T>
- All Implemented Interfaces:
MutableDataValueSetter<Collection<T>>
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionDataKey(@NotNull String name, @NotNull Collection<T> defaultValue, DataNotNullValueFactory<Collection<T>> factory) Creates a DataKey with a computed default value dynamically. -
Method Summary
Methods inherited from class DataKey
get, getDefaultValue, getDefaultValue, setMethods inherited from class DataKeyBase
equals, getFrom, getName, hashCode
-
Constructor Details
-
CollectionDataKey
public CollectionDataKey(@NotNull @NotNull String name, @NotNull @NotNull Collection<T> defaultValue, DataNotNullValueFactory<Collection<T>> factory) Creates a DataKey with a computed default value dynamically.- Parameters:
name- SeeDataKeyBase.getName().defaultValue- default value for collection keyfactory- data value factory for creating a new default value for the key
-
-
Method Details
-
getFactory
- Overrides:
getFactoryin classDataKey<Collection<T>>
-
toString
- Overrides:
toStringin classDataKey<Collection<T>>
-