Package org.fryske_akademy.jpa
Record Class RevInfo<T>
java.lang.Object
java.lang.Record
org.fryske_akademy.jpa.RevInfo<T>
- Type Parameters:
T-
container for revision info for an entity, used in
Auditing.getRevisionInfo(java.io.Serializable, Integer, Class)-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRevInfo(T entity, RevInfo.TYPE type, RevisionInfo revisionInfo) Creates an instance of aRevInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionentity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therevisionInforecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
RevInfo
Creates an instance of aRevInforecord class.- Parameters:
entity- the value for theentityrecord componenttype- the value for thetyperecord componentrevisionInfo- the value for therevisionInforecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
entity
Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
revisionInfo
Returns the value of therevisionInforecord component.- Returns:
- the value of the
revisionInforecord component
-