Top Constructors Methods
com.vladsch.flexmark.experimental.util.data

public Class CollectionDataKey<T>

extends DataKey<Collection<T>>
Class Inheritance
Imports
com.vladsch.flexmark.util.data.DataKey, .DataNotNullValueFactory, org.jetbrains.annotations.NotNull, java.util.Collection

Constructor Summary

AccessConstructor and Description
public
CollectionDataKey(@NotNull String name, @NotNull Collection<T>
default value for collection key
defaultValue
,
DataNotNullValueFactory<Collection<T>>
data value factory for creating a new default value for the key
factory
)

Creates a DataKey with a computed default value dynamically.

Method Summary

Modifier and TypeMethod and Description
public @NotNull DataNotNullValueFactory<Collection<T>>
public String
toString()

Overrides com.vladsch.flexmark.util.data.DataKey.toString.

Returns a string representation of the object.

Inherited from com.vladsch.flexmark.util.data.DataKey:
getgetDefaultValuegetDefaultValueset

Constructor Detail

CollectionDataKeyback to summary
public CollectionDataKey(@NotNull String name, @NotNull Collection<T> defaultValue, DataNotNullValueFactory<Collection<T>> factory)

Creates a DataKey with a computed default value dynamically.

Parameters
name:@NotNull String

See getName().

defaultValue:@NotNull Collection<T>

default value for collection key

factory:DataNotNullValueFactory<Collection<T>>

data value factory for creating a new default value for the key

Method Detail

getFactoryback to summary
public @NotNull DataNotNullValueFactory<Collection<T>> getFactory()

Overrides com.vladsch.flexmark.util.data.DataKey.getFactory.

Annotations
@NotNull
toStringback to summary
public String toString()

Overrides com.vladsch.flexmark.util.data.DataKey.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override