Class DslProperty<T>

java.lang.Object
org.springframework.cloud.contract.spec.internal.DslProperty<T>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Body, ClientDslProperty, Cookie, Header, MatchingStrategy, Multipart, NotToEscapePattern, QueryParameter, RegexProperty, ServerDslProperty, Url

public class DslProperty<T> extends Object implements Serializable
Represents an element of a DSL that can contain client or sever side values.
Since:
1.0.0
See Also:
  • Constructor Details

    • DslProperty

      public DslProperty(T clientValue, T serverValue)
    • DslProperty

      public DslProperty(T singleValue)
  • Method Details

    • isSingleValue

      public boolean isSingleValue()
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object
    • getClientValue

      public final T getClientValue()
    • getServerValue

      public final T getServerValue()