Package dev.turboism.sdk.cubism.model
Record Class TextureSourcesSnapshot
java.lang.Object
java.lang.Record
dev.turboism.sdk.cubism.model.TextureSourcesSnapshot
@CubismEditor
public record TextureSourcesSnapshot(TextureSourcesSnapshot.Availability availability, String binding, long generation, long revision, List<RawTexture> rawImages, List<TextureSourcesSnapshot.ModelImageSource> modelImages, List<ArtMeshTextureInputs> artMeshInputs)
extends Record
Lightweight source identities for a
TextureSourceQuery. Contains no layer trees,
pixel data, selector maps or global usage/group lists. Missing entries are unresolved, not
permission to guess a source. The revision is an observation sequence, not a model revision.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhether the adapter admitted the scoped query for this host.static final recordCurrent source only; candidate sources must not be substituted for a missing current source. -
Constructor Summary
ConstructorsConstructorDescriptionTextureSourcesSnapshot(TextureSourcesSnapshot.Availability availability, String binding, long generation, long revision, List<RawTexture> rawImages, List<TextureSourcesSnapshot.ModelImageSource> modelImages, List<ArtMeshTextureInputs> artMeshInputs) Creates an instance of aTextureSourcesSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartMeshInputsrecord component.Returns the value of theavailabilityrecord component.binding()Returns the value of thebindingrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thegenerationrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns whether this snapshot represents an admitted observation.Finds a requested model-image source; absence is unresolved.Returns the value of themodelImagesrecord component.rawImage(RawImageId id) Finds raw metadata within this query, not across the whole model.Returns the value of therawImagesrecord component.longrevision()Returns the value of therevisionrecord component.final StringtoString()Returns a string representation of this record class.static TextureSourcesSnapshotCreates the empty unavailable result without a document binding.
-
Constructor Details
-
TextureSourcesSnapshot
public TextureSourcesSnapshot(TextureSourcesSnapshot.Availability availability, String binding, long generation, long revision, List<RawTexture> rawImages, List<TextureSourcesSnapshot.ModelImageSource> modelImages, List<ArtMeshTextureInputs> artMeshInputs) Creates an instance of aTextureSourcesSnapshotrecord class.- Parameters:
availability- the value for theavailabilityrecord componentbinding- the value for thebindingrecord componentgeneration- the value for thegenerationrecord componentrevision- the value for therevisionrecord componentrawImages- the value for therawImagesrecord componentmodelImages- the value for themodelImagesrecord componentartMeshInputs- the value for theartMeshInputsrecord component
-
-
Method Details
-
isAvailable
public boolean isAvailable()Returns whether this snapshot represents an admitted observation. -
rawImage
Finds raw metadata within this query, not across the whole model. -
modelImage
Finds a requested model-image source; absence is unresolved. -
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 '=='. -
availability
Returns the value of theavailabilityrecord component.- Returns:
- the value of the
availabilityrecord component
-
binding
Returns the value of thebindingrecord component.- Returns:
- the value of the
bindingrecord component
-
generation
public long generation()Returns the value of thegenerationrecord component.- Returns:
- the value of the
generationrecord component
-
revision
public long revision()Returns the value of therevisionrecord component.- Returns:
- the value of the
revisionrecord component
-
rawImages
Returns the value of therawImagesrecord component.- Returns:
- the value of the
rawImagesrecord component
-
modelImages
Returns the value of themodelImagesrecord component.- Returns:
- the value of the
modelImagesrecord component
-
artMeshInputs
Returns the value of theartMeshInputsrecord component.- Returns:
- the value of the
artMeshInputsrecord component
-