Record Class AbstractCuratableValueObject.LastEventTriple
java.lang.Object
java.lang.Record
ubic.gemma.model.common.auditAndSecurity.curation.AbstractCuratableValueObject.LastEventTriple
- Enclosing class:
AbstractCuratableValueObject<C extends Curatable>
public static record AbstractCuratableValueObject.LastEventTriple(AuditEvent troubled, AuditEvent needsAttention, AuditEvent noteUpdate)
extends Record
Pre-fetched triple of "last X event" associations off a
CurationDetails, batch-loaded
per page of curatable entities to avoid the NĂ—3-SELECT proxy-init cost of letting each VO
constructor touch the three lazy proxies on its own. See
ExpressionExperimentDaoImpl#loadLastEventsByExperimentIds(Collection).-
Constructor Summary
ConstructorsConstructorDescriptionLastEventTriple(AuditEvent troubled, AuditEvent needsAttention, AuditEvent noteUpdate) Creates an instance of aLastEventTriplerecord 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.Returns the value of theneedsAttentionrecord component.Returns the value of thenoteUpdaterecord component.final StringtoString()Returns a string representation of this record class.troubled()Returns the value of thetroubledrecord component.
-
Constructor Details
-
LastEventTriple
public LastEventTriple(@Nullable AuditEvent troubled, @Nullable AuditEvent needsAttention, @Nullable AuditEvent noteUpdate) Creates an instance of aLastEventTriplerecord class.- Parameters:
troubled- the value for thetroubledrecord componentneedsAttention- the value for theneedsAttentionrecord componentnoteUpdate- the value for thenoteUpdaterecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
troubled
Returns the value of thetroubledrecord component.- Returns:
- the value of the
troubledrecord component
-
needsAttention
Returns the value of theneedsAttentionrecord component.- Returns:
- the value of the
needsAttentionrecord component
-
noteUpdate
Returns the value of thenoteUpdaterecord component.- Returns:
- the value of the
noteUpdaterecord component
-