Interface MetaParam.Lookup

All Known Subinterfaces:
EntryView.ReadEntryView<K,V>, EntryView.ReadWriteEntryView<K,V>, EntryViews.AccessLoggingReadWriteView<K,V>
All Known Implementing Classes:
MetaParamsInternalMetadata
Enclosing interface:
MetaParam<T>

@Experimental public static interface MetaParam.Lookup
Provides metadata parameter lookup capabilities using Class as lookup key.

A user that queries meta parameters can never assume that the meta parameter will always exist because some of them depends on the cache usage.

Since:
8.0
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends MetaParam>
    Optional<T>
    Returns a non-empty Optional instance containing a metadata parameter instance that can be assigned to the type Class passed in, or an empty Optional if no metadata can be assigned to that type.
  • Method Details

    • findMetaParam

      <T extends MetaParam> Optional<T> findMetaParam(Class<T> type)
      Returns a non-empty Optional instance containing a metadata parameter instance that can be assigned to the type Class passed in, or an empty Optional if no metadata can be assigned to that type.
      Type Parameters:
      T - metadata parameter type