Record Class CommandList
java.lang.Object
java.lang.Record
dev.engine.graphics.command.CommandList
An immutable list of recorded render commands.
Built by
CommandRecorder, submitted to a backend's CommandExecutor.-
Constructor Summary
ConstructorsConstructorDescriptionCommandList(List<RenderCommand> commands) Creates an instance of aCommandListrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncommands()Returns the value of thecommandsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()intsize()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CommandList
Creates an instance of aCommandListrecord class.- Parameters:
commands- the value for thecommandsrecord component
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
toString
-
hashCode
-
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). -
commands
Returns the value of thecommandsrecord component.- Returns:
- the value of the
commandsrecord component
-