Class MergeSource

java.lang.Object
com.linecorp.centraldogma.common.MergeSource

public final class MergeSource extends Object
A merge source that contains a path and isOptional which indicates whether the path is required or not.
  • Method Details

    • ofRequired

      public static MergeSource ofRequired(String path)
      Returns a newly-created MergeSource which contains a required path.
    • ofOptional

      public static MergeSource ofOptional(String path)
      Returns a newly-created MergeSource which contains an optional path.
    • path

      public String path()
      Returns the path.
    • isOptional

      public boolean isOptional()
      Returns true if the path is optional.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object