Class ResourceComparator
java.lang.Object
de.captaingoldfish.scim.sdk.common.utils.ResourceComparator
this class is used for partial or complete resource-comparison. This makes only sense if the comparison
should be reduced to specific set of attributes. In any other case the
ScimObjectNode.equals(Object) or
JsonHelper.isEqual(JsonNode, JsonNode) method can be used- Since:
- 26.02.2024
- Author:
- Pascal Knueppel
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionResourceComparator(Schema mainSchema, List<Schema> extensions, List<SchemaAttribute> attributes, ResourceComparator.AttributeHandlingType attributeHandlingType) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttributes(SchemaAttribute schemaAttribute, SchemaAttribute... schemaAttributes) booleanequals(com.fasterxml.jackson.databind.node.ObjectNode resource1, com.fasterxml.jackson.databind.node.ObjectNode resource2) will compare the two resources of equality
-
Constructor Details
-
ResourceComparator
public ResourceComparator(Schema mainSchema, List<Schema> extensions, List<SchemaAttribute> attributes, ResourceComparator.AttributeHandlingType attributeHandlingType)
-
-
Method Details
-
addAttributes
-
equals
public boolean equals(com.fasterxml.jackson.databind.node.ObjectNode resource1, com.fasterxml.jackson.databind.node.ObjectNode resource2) will compare the two resources of equality- Returns:
- true if the nodes are equal based on the given attributes, false else
-