Record Class GlslIntConstantNode
java.lang.Object
java.lang.Record
foundry.veil.impl.glsl.node.primary.GlslIntConstantNode
- All Implemented Interfaces:
GlslConstantNode
,GlslNode
public record GlslIntConstantNode(GlslIntFormat format, boolean signed, int value)
extends Record
implements GlslConstantNode
-
Constructor Summary
ConstructorDescriptionGlslIntConstantNode
(GlslIntFormat format, boolean signed, int value) Creates an instance of aGlslIntConstantNode
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
final boolean
Indicates whether some other object is "equal to" this one.format()
Returns the value of theformat
record component.final int
hashCode()
Returns a hash code value for this object.int
intValue()
boolean
isNumber()
boolean
signed()
Returns the value of thesigned
record component.toString()
Returns a string representation of this record class.int
value()
Returns the value of thevalue
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface foundry.veil.impl.glsl.node.GlslConstantNode
doubleValue, floatValue, stream, unsignedIntValue
-
Constructor Details
-
GlslIntConstantNode
Creates an instance of aGlslIntConstantNode
record class.- Parameters:
format
- the value for theformat
record componentsigned
- the value for thesigned
record componentvalue
- the value for thevalue
record component
-
-
Method Details
-
numberValue
- Specified by:
numberValue
in interfaceGlslConstantNode
-
intValue
public int intValue()- Specified by:
intValue
in interfaceGlslConstantNode
-
booleanValue
public boolean booleanValue()- Specified by:
booleanValue
in interfaceGlslConstantNode
-
isNumber
public boolean isNumber()- Specified by:
isNumber
in interfaceGlslConstantNode
-
getSourceString
- Specified by:
getSourceString
in interfaceGlslNode
-
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 '=='. -
format
Returns the value of theformat
record component.- Returns:
- the value of the
format
record component
-
signed
public boolean signed()Returns the value of thesigned
record component.- Returns:
- the value of the
signed
record component
-
value
public int value()Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-