public class Files extends HashMap<String,GameAssetFile>
GameAssetFile
s as is
returned by
/v1/files.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Files() |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<GameAssetFile> |
getFileWithId(int id)
Retrieve a file that has the specified
id . |
com.google.common.base.Optional<GameAssetFile> |
getFileWithSignature(String signature)
Retrieve a file that has the specified
signature . |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public com.google.common.base.Optional<GameAssetFile> getFileWithId(int id)
id
.id
- A valid file identifier.GameAssetFile
wrapped in an Optional
or an empty
Optional
.public com.google.common.base.Optional<GameAssetFile> getFileWithSignature(String signature)
signature
.signature
- A valid file signature.GameAssetFile
wrapped in an Optional
or an empty
Optional
.Copyright © 2014. All Rights Reserved.