Package dev.gothickit.zenkit.mmb
Record Class CachedMorphSource
java.lang.Object
java.lang.Record
dev.gothickit.zenkit.mmb.CachedMorphSource
- All Implemented Interfaces:
CacheableObject<CachedMorphSource>,MorphSource
public record CachedMorphSource(@NotNull String fileName, @NotNull Calendar fileDate)
extends Record
implements MorphSource
-
Constructor Summary
ConstructorsConstructorDescriptionCachedMorphSource(@NotNull String fileName, @NotNull Calendar fileDate) Creates an instance of aCachedMorphSourcerecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull CachedMorphSourcecache()final booleanIndicates whether some other object is "equal to" this one.@NotNull CalendarfileDate()Returns the value of thefileDaterecord component.@NotNull StringfileName()Returns the value of thefileNamerecord component.final inthashCode()Returns a hash code value for this object.booleanisCached()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CachedMorphSource
Creates an instance of aCachedMorphSourcerecord class.- Parameters:
fileName- the value for thefileNamerecord componentfileDate- the value for thefileDaterecord component
-
-
Method Details
-
cache
- Specified by:
cachein interfaceCacheableObject<CachedMorphSource>
-
isCached
public boolean isCached()- Specified by:
isCachedin interfaceCacheableObject<CachedMorphSource>
-
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). -
fileName
Returns the value of thefileNamerecord component.- Specified by:
fileNamein interfaceMorphSource- Returns:
- the value of the
fileNamerecord component
-
fileDate
Returns the value of thefileDaterecord component.- Specified by:
fileDatein interfaceMorphSource- Returns:
- the value of the
fileDaterecord component
-