Class MatchingStrategy
java.lang.Object
org.springframework.cloud.contract.spec.internal.DslProperty
org.springframework.cloud.contract.spec.internal.MatchingStrategy
- All Implemented Interfaces:
Serializable
Represents a matching strategy for a JSON.
- Since:
- 1.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMatchingStrategy(Object value, MatchingStrategy.Type type) MatchingStrategy(Object value, MatchingStrategy.Type type, JSONCompareMode jsonCompareMode) MatchingStrategy(DslProperty value, MatchingStrategy.Type type) MatchingStrategy(DslProperty value, MatchingStrategy.Type type, JSONCompareMode jsonCompareMode) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetType()inthashCode()voidsetJsonCompareMode(JSONCompareMode jsonCompareMode) voidsetType(MatchingStrategy.Type type) toString()Methods inherited from class org.springframework.cloud.contract.spec.internal.DslProperty
getClientValue, getServerValue, isSingleValue
-
Constructor Details
-
MatchingStrategy
-
MatchingStrategy
-
MatchingStrategy
-
MatchingStrategy
public MatchingStrategy(DslProperty value, MatchingStrategy.Type type, JSONCompareMode jsonCompareMode)
-
-
Method Details
-
getType
-
setType
-
getJsonCompareMode
-
setJsonCompareMode
-
toString
- Overrides:
toStringin classDslProperty
-
equals
- Overrides:
equalsin classDslProperty
-
hashCode
public int hashCode()- Overrides:
hashCodein classDslProperty
-