Record Class ShadowAssociationsCollection.IterableAssociationValue
java.lang.Object
java.lang.Record
com.evolveum.midpoint.schema.util.ShadowAssociationsCollection.IterableAssociationValue
- Record Components:
name- Name of the containing associationvalue- The value bean (refined, i.e. not a raw bean)modificationType- type of the modification, if the value is present inItemDelta(although sometimes only add/delete mods are expected, seeisAddNotDelete(). For static data theModificationType.ADDis used.
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ShadowAssociationsCollection
public static record ShadowAssociationsCollection.IterableAssociationValue(@NotNull ItemName name, @NotNull ShadowAssociationValueType value, @NotNull ModificationType modificationType)
extends Record
implements Serializable
Represents a
ShadowAssociationValue present either in an ItemDelta or in a ShadowType,
accessed via ShadowAssociationsCollection.iterator() method.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIterableAssociationValue(@NotNull ItemName name, @NotNull ShadowAssociationValueType value, @NotNull ModificationType modificationType) Creates an instance of aIterableAssociationValuerecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull ShadowAssociationValuefinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisAdd()booleanbooleanisDelete()@NotNull ModificationTypeReturns the value of themodificationTyperecord component.@NotNull ItemNamename()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.@NotNull ShadowAssociationValueTypevalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
IterableAssociationValue
public IterableAssociationValue(@NotNull @NotNull ItemName name, @NotNull @NotNull ShadowAssociationValueType value, @NotNull @NotNull ModificationType modificationType) Creates an instance of aIterableAssociationValuerecord class.- Parameters:
name- the value for thenamerecord componentvalue- the value for thevaluerecord componentmodificationType- the value for themodificationTyperecord component
-
-
Method Details
-
associationPcv
-
associationValue
-
isAdd
public boolean isAdd() -
isDelete
public boolean isDelete() -
isAddNotDelete
public boolean isAddNotDelete() -
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
modificationType
Returns the value of themodificationTyperecord component.- Returns:
- the value of the
modificationTyperecord component
-