Record Class flixw.Pin
java.lang.Object
java.lang.Record
flixw.Pin
- Enclosing class:
flixw
static record flixw.Pin(String repo, String version, String java, boolean clearJava, boolean refresh)
extends Record
What one `pin` command line asks for; `parsePin` is the only thing that builds it.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theclearJavarecord component.private final StringThe field for thejavarecord component.private final booleanThe field for therefreshrecord component.private final StringThe field for thereporecord component.private final StringThe field for theversionrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theclearJavarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.java()Returns the value of thejavarecord component.booleanrefresh()Returns the value of therefreshrecord component.repo()Returns the value of thereporecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Field Details
-
repo
The field for thereporecord component. -
version
The field for theversionrecord component. -
java
The field for thejavarecord component. -
clearJava
private final boolean clearJavaThe field for theclearJavarecord component. -
refresh
private final boolean refreshThe field for therefreshrecord component.
-
-
Constructor Details
-
Pin
Creates an instance of aPinrecord class.- Parameters:
repo- the value for thereporecord componentversion- the value for theversionrecord componentjava- the value for thejavarecord componentclearJava- the value for theclearJavarecord componentrefresh- the value for therefreshrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
repo
Returns the value of thereporecord component.- Returns:
- the value of the
reporecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
java
Returns the value of thejavarecord component.- Returns:
- the value of the
javarecord component
-
clearJava
public boolean clearJava()Returns the value of theclearJavarecord component.- Returns:
- the value of the
clearJavarecord component
-
refresh
public boolean refresh()Returns the value of therefreshrecord component.- Returns:
- the value of the
refreshrecord component
-