Record Class CompareObjectDto.ComparedItem<C extends Containerable>
java.lang.Object
java.lang.Record
com.evolveum.midpoint.gui.impl.page.admin.resource.component.wizard.schemaHandling.objectType.smart.component.CompareObjectDto.ComparedItem<C>
- All Implemented Interfaces:
Serializable
- Enclosing class:
- CompareObjectDto<C extends Containerable>
public static record CompareObjectDto.ComparedItem<C extends Containerable>(@NotNull String identifier, @NotNull PrismContainerValueWrapper<C extends Containerable> value, boolean isPrimary)
extends Record
implements Serializable
Represents one compared or candidate item in the comparison list.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionComparedItem(@NotNull String identifier, @NotNull PrismContainerValueWrapper<C> value, boolean isPrimary) Creates an instance of aComparedItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull StringReturns the value of theidentifierrecord component.booleanReturns the value of theisPrimaryrecord component.final StringtoString()Returns a string representation of this record class.@NotNull PrismContainerValueWrapper<C>value()Returns the value of thevaluerecord component.
-
Constructor Details
-
ComparedItem
public ComparedItem(@NotNull @NotNull String identifier, @NotNull @NotNull PrismContainerValueWrapper<C> value, boolean isPrimary) Creates an instance of aComparedItemrecord class.- Parameters:
identifier- the value for theidentifierrecord componentvalue- the value for thevaluerecord componentisPrimary- the value for theisPrimaryrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
isPrimary
public boolean isPrimary()Returns the value of theisPrimaryrecord component.- Returns:
- the value of the
isPrimaryrecord component
-