Package xyz.rk0cc.josev
Record Class SemVerRangeNode
java.lang.Object
java.lang.Record
xyz.rk0cc.josev.SemVerRangeNode
- All Implemented Interfaces:
Serializable
public record SemVerRangeNode(@Nonnull SemVer semVer, char operator, boolean orEquals)
extends Record
implements Serializable
A node for
SemVerRange
to define preference of the range of SemVer
.- Since:
- 1.0.0
- See Also:
-
Constructor Summary
ConstructorDescriptionSemVerRangeNode
(SemVer semVer, char operator, boolean orEquals) Create new node to define a range ofSemVer
to be constrained. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determine current configuration ofSemVerRangeNode
is the same or not.int
hashCode()
char
operator()
Returns the value of theoperator
record component.boolean
orEquals()
Returns the value of theorEquals
record component.semVer()
Returns the value of thesemVer
record component.toString()
Generate node object data underString
.
-
Constructor Details
-
Method Details
-
equals
Determine current configuration ofSemVerRangeNode
is the same or not. -
hashCode
public int hashCode() -
toString
Generate node object data underString
.- Specified by:
toString
in classRecord
- Returns:
- A
String
ofSemVerRangeNode
data.
-
semVer
Returns the value of thesemVer
record component.- Returns:
- the value of the
semVer
record component
-
operator
public char operator()Returns the value of theoperator
record component.- Returns:
- the value of the
operator
record component
-
orEquals
public boolean orEquals()Returns the value of theorEquals
record component.- Returns:
- the value of the
orEquals
record component
-