Record Class GlslCompoundNode
java.lang.Object
java.lang.Record
io.github.ocelot.glslprocessor.api.node.GlslCompoundNode
- All Implemented Interfaces:
GlslNode
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionGlslCompoundNode(List<GlslNode> children) Creates an instance of aGlslCompoundNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionchildren()Returns the value of thechildrenrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()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 aGlslCompoundNoderecord class.- Parameters:
children- the value for thechildrenrecord component
-
-
Method Details
-
toList
-
stream
-
setChildren
-
setChildren
-
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. -
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 thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-