Package foundry.veil.api.glsl.node
Record Class GlslCompoundNode
java.lang.Object
java.lang.Record
foundry.veil.api.glsl.node.GlslCompoundNode
- All Implemented Interfaces:
GlslNode
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGlslCompoundNode
(List<GlslNode> children) Creates an instance of aGlslCompoundNode
record class. -
Method Summary
Modifier and TypeMethodDescriptionchildren()
Returns the value of thechildren
record component.boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.setChildren
(GlslNode... children) setChildren
(Collection<GlslNode> children) stream()
toList()
toString()
Returns a string representation of this record class.
-
Constructor Details
-
GlslCompoundNode
Creates an instance of aGlslCompoundNode
record class.- Parameters:
children
- the value for thechildren
record component
-
-
Method Details
-
toList
-
stream
-
setChildren
-
setChildren
-
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. -
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 withObjects::equals(Object,Object)
. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
children
Returns the value of thechildren
record component.- Returns:
- the value of the
children
record component
-