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
ConstructorsConstructorDescriptionGlslIntConstantNode(GlslIntFormat format, boolean signed, int value) Creates an instance of aGlslIntConstantNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.intintValue()booleanisNumber()booleansigned()Returns the value of thesignedrecord component.toString()Returns a string representation of this record class.intvalue()Returns the value of thevaluerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface foundry.veil.impl.glsl.node.GlslConstantNode
doubleValue, floatValue, stream, unsignedIntValue
-
Constructor Details
-
GlslIntConstantNode
Creates an instance of aGlslIntConstantNoderecord class.- Parameters:
format- the value for theformatrecord componentsigned- the value for thesignedrecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
numberValue
- Specified by:
numberValuein interfaceGlslConstantNode
-
intValue
public int intValue()- Specified by:
intValuein interfaceGlslConstantNode
-
booleanValue
public boolean booleanValue()- Specified by:
booleanValuein interfaceGlslConstantNode
-
isNumber
public boolean isNumber()- Specified by:
isNumberin interfaceGlslConstantNode
-
getSourceString
- Specified by:
getSourceStringin 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 theformatrecord component.- Returns:
- the value of the
formatrecord component
-
signed
public boolean signed()Returns the value of thesignedrecord component.- Returns:
- the value of the
signedrecord component
-
value
public int value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-