Class AssetDescriptor<T>


  • public class AssetDescriptor<T>
    extends java.lang.Object
    Describes an asset to be loaded by its filename, type and AssetLoaderParameters. Instances of this are used in AssetLoadingTask to load the actual asset.
    • Field Detail

      • fileName

        public final java.lang.String fileName
      • type

        public final java.lang.Class<T> type
      • file

        public FileHandle file
        The resolved file. May be null if the fileName has not been resolved yet.
    • Constructor Detail

      • AssetDescriptor

        public AssetDescriptor​(java.lang.String fileName,
                               java.lang.Class<T> assetType)
      • AssetDescriptor

        public AssetDescriptor​(FileHandle file,
                               java.lang.Class<T> assetType)
        Creates an AssetDescriptor with an already resolved name.
      • AssetDescriptor

        public AssetDescriptor​(java.lang.String fileName,
                               java.lang.Class<T> assetType,
                               AssetLoaderParameters<T> params)
      • AssetDescriptor

        public AssetDescriptor​(FileHandle file,
                               java.lang.Class<T> assetType,
                               AssetLoaderParameters<T> params)
        Creates an AssetDescriptor with an already resolved name.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object