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.
  • 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 a TextureSourcesSnapshot record class.
      Parameters:
      availability - the value for the availability record component
      binding - the value for the binding record component
      generation - the value for the generation record component
      revision - the value for the revision record component
      rawImages - the value for the rawImages record component
      modelImages - the value for the modelImages record component
      artMeshInputs - the value for the artMeshInputs record component
  • Method Details

    • isAvailable

      public boolean isAvailable()
      Returns whether this snapshot represents an admitted observation.
    • rawImage

      public Optional<RawTexture> rawImage(RawImageId id)
      Finds raw metadata within this query, not across the whole model.
    • modelImage

      Finds a requested model-image source; absence is unresolved.
    • unavailable

      public static TextureSourcesSnapshot unavailable()
      Creates the empty unavailable result without a document binding.
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • availability

      public TextureSourcesSnapshot.Availability availability()
      Returns the value of the availability record component.
      Returns:
      the value of the availability record component
    • binding

      public String binding()
      Returns the value of the binding record component.
      Returns:
      the value of the binding record component
    • generation

      public long generation()
      Returns the value of the generation record component.
      Returns:
      the value of the generation record component
    • revision

      public long revision()
      Returns the value of the revision record component.
      Returns:
      the value of the revision record component
    • rawImages

      public List<RawTexture> rawImages()
      Returns the value of the rawImages record component.
      Returns:
      the value of the rawImages record component
    • modelImages

      Returns the value of the modelImages record component.
      Returns:
      the value of the modelImages record component
    • artMeshInputs

      public List<ArtMeshTextureInputs> artMeshInputs()
      Returns the value of the artMeshInputs record component.
      Returns:
      the value of the artMeshInputs record component