java.lang.Object
java.lang.Record
overrungl.glfw.GLFWVidMode.Value
- Record Components:
width
- the width, in screen coordinates, of the video modeheight
- the height, in screen coordinates, of the video moderedBits
- the bit depth of the red channel, of the video modegreenBits
- the bit depth of the green channel, of the video modeblueBits
- the bit depth of the blue channel, of the video moderefreshRate
- the refresh rate, in Hz, of the video mode
- Enclosing class:
GLFWVidMode
public static record GLFWVidMode.Value(int width, int height, int redBits, int greenBits, int blueBits, int refreshRate)
extends Record
The immutable state of
GLFWVidMode
.- Since:
- 0.1.0
- Author:
- squid233
-
Constructor Summary
ConstructorDescriptionValue
(int width, int height, int redBits, int greenBits, int blueBits, int refreshRate) Creates an instance of aValue
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
blueBits()
Returns the value of theblueBits
record component.final boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of thegreenBits
record component.final int
hashCode()
Returns a hash code value for this object.int
height()
Returns the value of theheight
record component.int
redBits()
Returns the value of theredBits
record component.int
Returns the value of therefreshRate
record component.final String
toString()
Returns a string representation of this record class.int
width()
Returns the value of thewidth
record component.
-
Constructor Details
-
Value
public Value(int width, int height, int redBits, int greenBits, int blueBits, int refreshRate) Creates an instance of aValue
record class.- Parameters:
width
- the value for thewidth
record componentheight
- the value for theheight
record componentredBits
- the value for theredBits
record componentgreenBits
- the value for thegreenBits
record componentblueBits
- the value for theblueBits
record componentrefreshRate
- the value for therefreshRate
record 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 with '=='. -
width
public int width()Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
height
public int height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-
redBits
public int redBits()Returns the value of theredBits
record component.- Returns:
- the value of the
redBits
record component
-
greenBits
public int greenBits()Returns the value of thegreenBits
record component.- Returns:
- the value of the
greenBits
record component
-
blueBits
public int blueBits()Returns the value of theblueBits
record component.- Returns:
- the value of the
blueBits
record component
-
refreshRate
public int refreshRate()Returns the value of therefreshRate
record component.- Returns:
- the value of the
refreshRate
record component
-