APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.assets

public Class AssetDescriptor<T>

extends Object
Class Inheritance
Imports
com.badlogic.gdx.files.FileHandle

Describes an asset to be loaded by its filename, type and AssetLoaderParameters. Instances of this are used in AssetLoadingTask to load the actual asset.
Author
mzechner

Field Summary

Modifier and TypeField and Description
public FileHandle
file

The resolved file.

public final String
public final AssetLoaderParameters<T>
public final Class<T>

Constructor Summary

AccessConstructor and Description
public
AssetDescriptor(String fileName, Class<T> assetType)

public
AssetDescriptor(FileHandle file, Class<T> assetType)

Creates an AssetDescriptor with an already resolved name.

public
AssetDescriptor(String fileName, Class<T> assetType, AssetLoaderParameters<T> params)

public
AssetDescriptor(FileHandle file, Class<T> assetType, AssetLoaderParameters<T> params)

Creates an AssetDescriptor with an already resolved name.

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

fileback to summary
public FileHandle file

The resolved file. May be null if the fileName has not been resolved yet.

fileNameback to summary
public final String fileName
paramsback to summary
public final AssetLoaderParameters<T> params
typeback to summary
public final Class<T> type

Constructor Detail

AssetDescriptorback to summary
public AssetDescriptor(String fileName, Class<T> assetType)
AssetDescriptorback to summary
public AssetDescriptor(FileHandle file, Class<T> assetType)

Creates an AssetDescriptor with an already resolved name.

AssetDescriptorback to summary
public AssetDescriptor(String fileName, Class<T> assetType, AssetLoaderParameters<T> params)
AssetDescriptorback to summary
public AssetDescriptor(FileHandle file, Class<T> assetType, AssetLoaderParameters<T> params)

Creates an AssetDescriptor with an already resolved name.

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override