Package net.hycrafthd.update_checker
Record Class UpdateChecker.Result
java.lang.Object
java.lang.Record
net.hycrafthd.update_checker.UpdateChecker.Result
- Enclosing class:
- UpdateChecker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchanges()
Returns the value of thechanges
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.status()
Returns the value of thestatus
record component.Version<?>
target()
Returns the value of thetarget
record component.final String
toString()
Returns a string representation of this record class.url()
Returns the value of theurl
record component.
-
Constructor Details
-
Result
public Result(VersionChecker.Status status, Version<?> target, Map<Version<?>, String> changes, String url) Creates an instance of aResult
record class.- Parameters:
status
- the value for thestatus
record componenttarget
- the value for thetarget
record componentchanges
- the value for thechanges
record componenturl
- the value for theurl
record 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)
. -
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
target
Returns the value of thetarget
record component.- Returns:
- the value of the
target
record component
-
changes
Returns the value of thechanges
record component.- Returns:
- the value of the
changes
record component
-
url
Returns the value of theurl
record component.- Returns:
- the value of the
url
record component
-