Record Class CLVersion
java.lang.Object
java.lang.Record
club.doki7.opencl.CLVersion
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionCLVersion(int major, int minor, int patch) Creates an instance of aCLVersionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull CLVersiondecode(int version) intencode()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmajor()Returns the value of themajorrecord component.intminor()Returns the value of theminorrecord component.intpatch()Returns the value of thepatchrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
VERSION_MAJOR_BITS
public static final int VERSION_MAJOR_BITS- See Also:
-
VERSION_MINOR_BITS
public static final int VERSION_MINOR_BITS- See Also:
-
VERSION_PATCH_BITS
public static final int VERSION_PATCH_BITS- See Also:
-
VERSION_MAJOR_MASK
public static final int VERSION_MAJOR_MASK- See Also:
-
VERSION_MINOR_MASK
public static final int VERSION_MINOR_MASK- See Also:
-
VERSION_PATCH_MASK
public static final int VERSION_PATCH_MASK- See Also:
-
-
Constructor Details
-
CLVersion
public CLVersion(int major, int minor, int patch) Creates an instance of aCLVersionrecord class.- Parameters:
major- the value for themajorrecord componentminor- the value for theminorrecord componentpatch- the value for thepatchrecord component
-
-
Method Details
-
decode
-
encode
public int encode() -
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
major
public int major()Returns the value of themajorrecord component.- Returns:
- the value of the
majorrecord component
-
minor
public int minor()Returns the value of theminorrecord component.- Returns:
- the value of the
minorrecord component
-
patch
public int patch()Returns the value of thepatchrecord component.- Returns:
- the value of the
patchrecord component
-