Package com.luciad.fusion.tilestore
Class TLfnCollectionResourceMetadataResolver<R extends ALfnResourceMetadata>
java.lang.Object
com.luciad.fusion.tilestore.TLfnCollectionResourceMetadataResolver<R>
- All Implemented Interfaces:
ILfnResourceMetadataResolver
public class TLfnCollectionResourceMetadataResolver<R extends ALfnResourceMetadata>
extends Object
implements ILfnResourceMetadataResolver
A resource metadata resolver implementation that resolves resource metadata from a given collection.
The resolver takes a snapshot of the given collection at construction time, so it will not see any changes in the collection.
If the collection contains resources with duplicate IDs, it is undefined which one will be returned.
The collection is typically a result of a previous query, and may only contain the metadata relevant to the application.
Instances of this class are not thread-safe.
- Since:
- 2014.0
-
Constructor Summary
ConstructorDescriptionTLfnCollectionResourceMetadataResolver
(Collection<? extends R> aResourceMetadatas) Constructs a resource metadata resolver from a collection of resource metadata. -
Method Summary
Modifier and TypeMethodDescriptionGets the resource metadata for a given ID, if any.toString()
Returns a string representation of this resource metadata resolver.
-
Constructor Details
-
TLfnCollectionResourceMetadataResolver
Constructs a resource metadata resolver from a collection of resource metadata.- Parameters:
aResourceMetadatas
- the collection of resource metadata, must not benull
-
-
Method Details
-
getResourceMetadata
Gets the resource metadata for a given ID, if any.- Specified by:
getResourceMetadata
in interfaceILfnResourceMetadataResolver
- Parameters:
aId
- the resource ID- Returns:
- a resource metadata, possibly
null
-
toString
Returns a string representation of this resource metadata resolver.
-