Package org.photonvision.jni
Record Class CombinedRuntimeLoader.ResourceInformation
java.lang.Object
java.lang.Record
org.photonvision.jni.CombinedRuntimeLoader.ResourceInformation
- Enclosing class:
- CombinedRuntimeLoader
public static record CombinedRuntimeLoader.ResourceInformation(String hash, Map<String,CombinedRuntimeLoader.PlatformInfo> platforms, List<String> versions)
extends Record
Overall resource information to be serialized
-
Constructor Summary
ConstructorsConstructorDescriptionResourceInformation(String hash, Map<String, CombinedRuntimeLoader.PlatformInfo> platforms, List<String> versions) Creates an instance of aResourceInformationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.hash()Returns the value of thehashrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theplatformsrecord component.final StringtoString()Returns a string representation of this record class.versions()Returns the value of theversionsrecord component.
-
Constructor Details
-
ResourceInformation
public ResourceInformation(String hash, Map<String, CombinedRuntimeLoader.PlatformInfo> platforms, List<String> versions) Creates an instance of aResourceInformationrecord class.- Parameters:
hash- the value for thehashrecord componentplatforms- the value for theplatformsrecord componentversions- the value for theversionsrecord 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
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). -
hash
Returns the value of thehashrecord component.- Returns:
- the value of the
hashrecord component
-
platforms
Returns the value of theplatformsrecord component.- Returns:
- the value of the
platformsrecord component
-
versions
Returns the value of theversionsrecord component.- Returns:
- the value of the
versionsrecord component
-