Class MergedEntry<T>
java.lang.Object
com.linecorp.centraldogma.common.MergedEntry<T>
- Type Parameters:
T- the content type. It isJsonNodebecause only JSON merge is currently supported.
- All Implemented Interfaces:
ContentHolder<T>
A merged entry in a repository.
-
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the content.Returns the prettified textual representation of the specified content.Returns the textual representation of the specified content.booleaninthashCode()static <T> MergedEntry<T> Returns a newly-createdMergedEntry.static <T> MergedEntry<T> Returns a newly-createdMergedEntry.paths()Returns the paths which participated to compose theMergedEntry.revision()Returns theRevisionof thisMergedEntry.toString()type()Returns theEntryTypeof the content.Methods inherited from interface ContentHolder
contentAsJson, contentAsJson
-
Method Details
-
of
Returns a newly-createdMergedEntry.- Type Parameters:
T- the content type. It isJsonNodebecause only JSON merge is currently supported.- Parameters:
revision- the revision of theMergedEntrytype- the type of theMergedEntrycontent- the content of theMergedEntrypaths- the paths which participated to compose theMergedEntry
-
of
public static <T> MergedEntry<T> of(Revision revision, EntryType type, T content, Iterable<String> paths) Returns a newly-createdMergedEntry.- Type Parameters:
T- the content type. It isJsonNodebecause only JSON merge is currently supported.- Parameters:
revision- the revision of theMergedEntrytype- the type of theMergedEntrycontent- the content of theMergedEntrypaths- the paths which participated to compose theMergedEntry
-
revision
Returns theRevisionof thisMergedEntry. -
type
Description copied from interface:ContentHolderReturns theEntryTypeof the content.- Specified by:
typein interfaceContentHolder<T>
-
content
Description copied from interface:ContentHolderReturns the content.- Specified by:
contentin interfaceContentHolder<T>
-
paths
Returns the paths which participated to compose theMergedEntry. -
contentAsText
Description copied from interface:ContentHolderReturns the textual representation of the specified content.- Specified by:
contentAsTextin interfaceContentHolder<T>
-
contentAsPrettyText
Description copied from interface:ContentHolderReturns the prettified textual representation of the specified content. Only aTreeNodeis prettified currently.- Specified by:
contentAsPrettyTextin interfaceContentHolder<T>
-
hashCode
-
equals
-
toString
-