Record Class ProvenanceTracker.ProvenanceEvent
java.lang.Object
java.lang.Record
org.episteme.social.arts.ProvenanceTracker.ProvenanceEvent
- Enclosing class:
ProvenanceTracker
public static record ProvenanceTracker.ProvenanceEvent(TimeCoordinate date, String fromOwner, String toOwner, ProvenanceTracker.TransferType type, Place location, String notes)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionProvenanceEvent(TimeCoordinate date, String fromOwner, String toOwner, ProvenanceTracker.TransferType type, Place location, String notes) Creates an instance of aProvenanceEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondate()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefromOwnerrecord component.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.notes()Returns the value of thenotesrecord component.toOwner()Returns the value of thetoOwnerrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ProvenanceEvent
public ProvenanceEvent(TimeCoordinate date, String fromOwner, String toOwner, ProvenanceTracker.TransferType type, Place location, String notes) Creates an instance of aProvenanceEventrecord class.- Parameters:
date- the value for thedaterecord componentfromOwner- the value for thefromOwnerrecord componenttoOwner- the value for thetoOwnerrecord componenttype- the value for thetyperecord componentlocation- the value for thelocationrecord componentnotes- the value for thenotesrecord 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). -
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
fromOwner
Returns the value of thefromOwnerrecord component.- Returns:
- the value of the
fromOwnerrecord component
-
toOwner
Returns the value of thetoOwnerrecord component.- Returns:
- the value of the
toOwnerrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
notes
Returns the value of thenotesrecord component.- Returns:
- the value of the
notesrecord component
-