Leaf<T>

References
public sealed class Leaf<T> : ILeaf
Generic implementation of ILeaf.
T

Constructors

Leaf

#
public Leaf(Pear<T> pear, Site site)
Construct a new leaf.
pear (Pear<T>)Item and meta data pear.
site (Site)Site, may not be null.

Properties

Explicit

ILeaf.Pear

#
Pear

Pear

#
public Pear<T> Pear { get; }
Item and meta pear.

Site

#
public Site Site { get; }
Gets the site for this entry.
Site

Methods

MergeMeta

#
public Leaf<T> MergeMeta(MetaData data, MergeBehaviour mergeBehaviour)
Merge the existing meta data with other meta data.
data (MetaData)Data to add.
mergeBehaviour (MergeBehaviour)Merge behaviour.
New leaf.

ReplaceItem

#
public Leaf<T> ReplaceItem(T item)
Create a new leaf with a new item.
item (T)New item, must be of the same type as the old item.
New leaf.

ReplaceMeta

#
public Leaf<T> ReplaceMeta(MetaData data)
Replace the meta data.
data (MetaData)New meta data.
New leaf.