Package dev.relism.flash.ext.vite
Record Class PackageManager.Found
java.lang.Object
java.lang.Record
dev.relism.flash.ext.vite.PackageManager.Found
- Enclosing class:
PackageManager
A package manager and the lockfile it was found by,
null when there is none.-
Constructor Summary
ConstructorsConstructorDescriptionFound(PackageManager manager, Path lockfile) Creates an instance of aFoundrecord 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.install()Installs exactly what the lockfile pins; without one, npm resolves afresh.lockfile()Returns the value of thelockfilerecord component.manager()Returns the value of themanagerrecord component.Runs apackage.jsonscript, passingargsthrough to it.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Found
Creates an instance of aFoundrecord class.- Parameters:
manager- the value for themanagerrecord componentlockfile- the value for thelockfilerecord component
-
-
Method Details
-
install
Installs exactly what the lockfile pins; without one, npm resolves afresh. -
run
Runs apackage.jsonscript, passingargsthrough to it. -
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). -
manager
Returns the value of themanagerrecord component.- Returns:
- the value of the
managerrecord component
-
lockfile
Returns the value of thelockfilerecord component.- Returns:
- the value of the
lockfilerecord component
-