Lookup

trait Lookup[T]

Describes a strategy to lookup values from a TagSet instance. Implementations of this interface will be provided with the actual data structure containing the tags and must perform any necessary runtime type checks to ensure that the returned value is in assignable to the expected type T.

Several implementation are provided in the Lookup companion object and it is recommended to import and use those definitions when looking up keys from a Tags instance.

class Object
trait Matchable
class Any

Value members

Abstract methods

def execute(storage: Storage): T

Tries to find a value on a TagSet.Storage and returns a representation of it. In some cases the stored object might be returned as-is, in some others it might be transformed or wrapped on Option/Optional to handle missing values. Take a look at the Lookups companion object for examples..

Tries to find a value on a TagSet.Storage and returns a representation of it. In some cases the stored object might be returned as-is, in some others it might be transformed or wrapped on Option/Optional to handle missing values. Take a look at the Lookups companion object for examples..