Record Class MultipleDifferences
java.lang.Object
java.lang.Record
io.vena.bosk.drivers.mongo.status.MultipleDifferences
- All Implemented Interfaces:
Difference,SomeDifference
public record MultipleDifferences(String bsonPath, List<Difference> examples)
extends Record
implements SomeDifference
-
Constructor Summary
ConstructorsConstructorDescriptionMultipleDifferences(String bsonPath, List<Difference> examples) Creates an instance of aMultipleDifferencesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbsonPath()Returns the value of thebsonPathrecord component.final booleanIndicates whether some other object is "equal to" this one.examples()Returns the value of theexamplesrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.withPrefix(String prefix)
-
Constructor Details
-
MultipleDifferences
Creates an instance of aMultipleDifferencesrecord class.- Parameters:
bsonPath- the value for thebsonPathrecord componentexamples- the value for theexamplesrecord component
-
-
Method Details
-
withPrefix
- Specified by:
withPrefixin interfaceDifference
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
bsonPath
Returns the value of thebsonPathrecord component.- Specified by:
bsonPathin interfaceSomeDifference- Returns:
- the value of the
bsonPathrecord component
-
examples
Returns the value of theexamplesrecord component.- Returns:
- the value of the
examplesrecord component
-