Record Class AbstractSearchExpressionEvaluator.ObjectFound<OT extends ObjectType,C>
java.lang.Object
java.lang.Record
com.evolveum.midpoint.model.common.expression.evaluator.AbstractSearchExpressionEvaluator.ObjectFound<OT,C>
- All Implemented Interfaces:
Freezable
- Enclosing class:
- AbstractSearchExpressionEvaluator<V extends PrismValue,
O extends ObjectType, D extends ItemDefinition<?>, E extends SearchObjectExpressionEvaluatorType>
public static record AbstractSearchExpressionEvaluator.ObjectFound<OT extends ObjectType,C> (@NotNull PrismObject<OT extends ObjectType> sourceObject, C convertedValue)
extends Record
implements Freezable
The result of the search: both source object, and the value that was created from it.
The value is the actual result. The source object is currently used only for resource/kind determination
in
AssociationSearchQueryResult (for cache invalidation).
TODO reconsider whether the cache invalidation should not be done in a different way-
Constructor Summary
ConstructorsConstructorDescriptionObjectFound(@NotNull PrismObject<OT> sourceObject, C convertedValue) Creates an instance of aObjectFoundrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconvertedValuerecord component.final booleanIndicates whether some other object is "equal to" this one.voidfreeze()Should be no-op (or very quick) if the object is already immutable.final inthashCode()Returns a hash code value for this object.boolean@NotNull PrismObject<OT>Returns the value of thesourceObjectrecord component.final StringtoString()Returns a string representation of this record class.static <C> List<C>unwrap(Collection<? extends AbstractSearchExpressionEvaluator.ObjectFound<?, C>> objectFounds) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable
-
Constructor Details
-
ObjectFound
Creates an instance of aObjectFoundrecord class.- Parameters:
sourceObject- the value for thesourceObjectrecord componentconvertedValue- the value for theconvertedValuerecord component
-
-
Method Details
-
unwrap
public static <C> List<C> unwrap(Collection<? extends AbstractSearchExpressionEvaluator.ObjectFound<?, C>> objectFounds) -
isImmutable
public boolean isImmutable()- Specified by:
isImmutablein interfaceFreezable
-
freeze
public void freeze()Description copied from interface:FreezableShould be no-op (or very quick) if the object is already immutable. -
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). -
sourceObject
Returns the value of thesourceObjectrecord component.- Returns:
- the value of the
sourceObjectrecord component
-
convertedValue
Returns the value of theconvertedValuerecord component.- Returns:
- the value of the
convertedValuerecord component
-