Package dev.shamoo.runtime.core
Record Class InstalledPluginCandidate
java.lang.Object
java.lang.Record
dev.shamoo.runtime.core.InstalledPluginCandidate
public record InstalledPluginCandidate(PluginId pluginId, dev.shamoo.runtime.protocol.PluginDescriptor descriptor, Path root, Map<String,String> checksums)
extends Record
Immutable discovered plugin installation; it does not imply activation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechecksumsrecord component.dev.shamoo.runtime.protocol.PluginDescriptorReturns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pluginId()Returns the value of thepluginIdrecord component.root()Returns the value of therootrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InstalledPluginCandidate
public InstalledPluginCandidate(PluginId pluginId, dev.shamoo.runtime.protocol.PluginDescriptor descriptor, Path root, Map<String, String> checksums) Creates an instance of aInstalledPluginCandidaterecord class.- Parameters:
pluginId- the value for thepluginIdrecord componentdescriptor- the value for thedescriptorrecord componentroot- the value for therootrecord componentchecksums- the value for thechecksumsrecord 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). -
pluginId
Returns the value of thepluginIdrecord component.- Returns:
- the value of the
pluginIdrecord component
-
descriptor
public dev.shamoo.runtime.protocol.PluginDescriptor descriptor()Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
root
Returns the value of therootrecord component.- Returns:
- the value of the
rootrecord component
-
checksums
Returns the value of thechecksumsrecord component.- Returns:
- the value of the
checksumsrecord component
-