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 Details

    • TLfnCollectionResourceMetadataResolver

      public TLfnCollectionResourceMetadataResolver(Collection<? extends R> aResourceMetadatas)
      Constructs a resource metadata resolver from a collection of resource metadata.
      Parameters:
      aResourceMetadatas - the collection of resource metadata, must not be null
  • Method Details

    • getResourceMetadata

      public R getResourceMetadata(String aId)
      Gets the resource metadata for a given ID, if any.
      Specified by:
      getResourceMetadata in interface ILfnResourceMetadataResolver
      Parameters:
      aId - the resource ID
      Returns:
      a resource metadata, possibly null
    • toString

      public String toString()
      Returns a string representation of this resource metadata resolver.
      Overrides:
      toString in class Object
      Returns:
      a string representation of this resource metadata resolver