Package com.linecorp.centraldogma.common
Class MergeSource
java.lang.Object
com.linecorp.centraldogma.common.MergeSource
A merge source that contains a
path
and isOptional
which indicates whether the path
is required or not.-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
Returnstrue
if the path is optional.static MergeSource
ofOptional
(String path) Returns a newly-createdMergeSource
which contains an optional path.static MergeSource
ofRequired
(String path) Returns a newly-createdMergeSource
which contains a required path.path()
Returns the path.toString()
-
Method Details
-
ofRequired
Returns a newly-createdMergeSource
which contains a required path. -
ofOptional
Returns a newly-createdMergeSource
which contains an optional path. -
path
Returns the path. -
isOptional
public boolean isOptional()Returnstrue
if the path is optional. -
hashCode
public int hashCode() -
equals
-
toString
-