public class AssetProvider<V extends Asset> extends Object implements IdentifiableProvider<V>
Asset
s.
Created by Jeff Gaynor
on 1/29/13 at 3:45 PM
Constructor and Description |
---|
AssetProvider() |
Modifier and Type | Method and Description |
---|---|
V |
get()
Creates an new asset with a randomly assigned identifier.
|
V |
get(boolean createNewIdentifier)
Create a new Identifiable object and create a new identifier if true.
|
Asset |
get(Identifier identifier) |
Asset |
get(String identifier)
Convenience method to return the asset if the identifier is a string rather than an
Identifier . |
public V get(boolean createNewIdentifier)
IdentifiableProvider
Provider.get()
should be the same as get(true)
.get
in interface IdentifiableProvider<V extends Asset>
public V get()
public Asset get(String identifier)
Identifier
.identifier
- public Asset get(Identifier identifier)
Copyright © 2019. All Rights Reserved.