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
ConstructorsConstructorDescriptionValue(int width, int height, int redBits, int greenBits, int blueBits, int refreshRate) Creates an instance of aValuerecord class. - 
Method Summary
Modifier and TypeMethodDescriptionintblueBits()Returns the value of theblueBitsrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thegreenBitsrecord component.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.intredBits()Returns the value of theredBitsrecord component.intReturns the value of therefreshRaterecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component. 
- 
Constructor Details
- 
Value
public Value(int width, int height, int redBits, int greenBits, int blueBits, int refreshRate) Creates an instance of aValuerecord class.- Parameters:
 width- the value for thewidthrecord componentheight- the value for theheightrecord componentredBits- the value for theredBitsrecord componentgreenBits- the value for thegreenBitsrecord componentblueBits- the value for theblueBitsrecord componentrefreshRate- the value for therefreshRaterecord 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 thewidthrecord component.- Returns:
 - the value of the 
widthrecord component 
 - 
height
public int height()Returns the value of theheightrecord component.- Returns:
 - the value of the 
heightrecord component 
 - 
redBits
public int redBits()Returns the value of theredBitsrecord component.- Returns:
 - the value of the 
redBitsrecord component 
 - 
greenBits
public int greenBits()Returns the value of thegreenBitsrecord component.- Returns:
 - the value of the 
greenBitsrecord component 
 - 
blueBits
public int blueBits()Returns the value of theblueBitsrecord component.- Returns:
 - the value of the 
blueBitsrecord component 
 - 
refreshRate
public int refreshRate()Returns the value of therefreshRaterecord component.- Returns:
 - the value of the 
refreshRaterecord component 
 
 -