Package ke.ric.renderer.api
Record Class RenderJob
java.lang.Object
java.lang.Record
ke.ric.renderer.api.RenderJob
- Record Components:
version- wire-contract version; v1 requires1scene- captured or manually built scene owned by the submitting clientsettings- output and resource settingsassetHashes- content hashes returned by activeAssetHandleinstances
public record RenderJob(int version, Scene scene, RenderSettings settings, List<String> assetHashes)
extends Record
One immutable submission joining a scene, render settings, and selected registered assets.
-
Constructor Summary
ConstructorsConstructorDescriptionRenderJob(int version, Scene scene, RenderSettings settings) Creates a submission with no additional registered asset packs; scene/settings dimensions must match.RenderJob(int version, Scene scene, RenderSettings settings, List<String> assetHashes) Creates an instance of aRenderJobrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassetHashesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.scene()Returns the value of thescenerecord component.settings()Returns the value of thesettingsrecord component.final StringtoString()Returns a string representation of this record class.intversion()Returns the value of theversionrecord component.
-
Constructor Details
-
RenderJob
Creates a submission with no additional registered asset packs; scene/settings dimensions must match. -
RenderJob
Creates an instance of aRenderJobrecord class.- Parameters:
version- the value for theversionrecord componentscene- the value for thescenerecord componentsettings- the value for thesettingsrecord componentassetHashes- the value for theassetHashesrecord component
-
-
Method Details
-
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 '=='. -
version
public int version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
scene
Returns the value of thescenerecord component.- Returns:
- the value of the
scenerecord component
-
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-
assetHashes
Returns the value of theassetHashesrecord component.- Returns:
- the value of the
assetHashesrecord component
-