Record Class FetchedVersion
java.lang.Object
java.lang.Record
com.fancyinnovations.versionchecker.FetchedVersion
-
Constructor Summary
ConstructorsConstructorDescriptionFetchedVersion(String name, long publishedAt, String downloadURL) Creates an instance of aFetchedVersionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedownloadURLrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisNewerThan(FetchedVersion other) name()Returns the value of thenamerecord component.longReturns the value of thepublishedAtrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FetchedVersion
Creates an instance of aFetchedVersionrecord class.- Parameters:
name- the value for thenamerecord componentpublishedAt- the value for thepublishedAtrecord componentdownloadURL- the value for thedownloadURLrecord component
-
-
Method Details
-
isNewerThan
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
publishedAt
public long publishedAt()Returns the value of thepublishedAtrecord component.- Returns:
- the value of the
publishedAtrecord component
-
downloadURL
Returns the value of thedownloadURLrecord component.- Returns:
- the value of the
downloadURLrecord component
-