Skip to content

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
cwisniew committed Jul 1, 2023
1 parent 94e65c1 commit d6c66d5
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/main/java/net/rptools/maptool/util/AssetResolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,14 @@
import net.rptools.maptool.model.library.LibraryManager;

/**
* Utility Class to aid in resolving asset keys for images.
* It will resolve the asset key for the following:
* lib:// URI
* asset:// URI
* image:token
* MD5 hash (as String)
* Utility Class to aid in resolving asset keys for images. It will resolve the asset key for the
* following: lib:// URI asset:// URI image:token MD5 hash (as String)
*/
public class AssetResolver {

/**
* Returns the asset key for the specified URL.
*
* @param url the URL to get the asset key for.
* @return the MD5key of the asset at the specified URL.
*/
Expand All @@ -57,12 +54,8 @@ public Optional<MD5Key> getAssetKey(URL url) {
}

/**
* Returns the asset key for the specified location.
* Locations can be:
* lib:// URI
* asset:// URI
* image:token
* MD5 hash (as String)
* Returns the asset key for the specified location. Locations can be: lib:// URI asset:// URI
* image:token MD5 hash (as String)
*
* @param location the location to get the asset key for.
* @return the MD5key of the asset at the specified location.
Expand All @@ -83,6 +76,7 @@ public Optional<MD5Key> getAssetKey(String location) {

/**
* Returns the asset key for the specified URI.
*
* @param uri the URI to get the asset key for.
* @return the MD5key of the asset at the specified URI.
*/
Expand Down

0 comments on commit d6c66d5

Please sign in to comment.