java.lang.Object
java.lang.Record
qupath.bioimageio.spec.ModelParent
- Record Components:
id- bioimage.io-wide unique resource identifier assigned by bioimage.io; version **un**specific.sha256- The SHA256 of something TODO: clarify whaturi- A URI, hopefully to the base path of the model.
Model parent. Currently, this provides only an ID and URI. Corresponds to LinkedModel in the 0.4 spec.
-
Constructor Summary
ConstructorsConstructorDescriptionModelParent(String id, String sha256, String uri) Creates an instance of aModelParentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.sha256()Returns the value of thesha256record component.toString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.
-
Constructor Details
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
sha256
Returns the value of thesha256record component.- Returns:
- the value of the
sha256record component
-
uri
Returns the value of theurirecord component.- Returns:
- the value of the
urirecord component
-