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 com.vladsch.flexmark.util.data.DataKey
get, getDefaultValue, getDefaultValue, set
Methods inherited from class com.vladsch.flexmark.util.data.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:
getFactory
in classDataKey<Collection<T>>
-
toString
- Overrides:
toString
in classDataKey<Collection<T>>
-