Interface Pointer<V>

Type Parameters:
V - the value type
All Superinterfaces:
Keyed

public sealed interface Pointer<V> extends Keyed
A pointer to a resource.
Since:
4.8.0
  • Method Summary

    Modifier and Type
    Method
    Description
    key()
    Gets the key.
    static <V> Pointer<V>
    pointer(Class<V> type, Key key)
    Creates a pointer.
    Gets the value type.
  • Method Details

    • pointer

      static <V> Pointer<V> pointer(Class<V> type, Key key)
      Creates a pointer.
      Type Parameters:
      V - the value type
      Parameters:
      type - the value type
      key - the key
      Returns:
      the pointer
      Since:
      4.8.0
    • type

      Class<V> type()
      Gets the value type.
      Returns:
      the value type
      Since:
      4.8.0
    • key

      Key key()
      Gets the key.
      Specified by:
      key in interface Keyed
      Returns:
      the key
      Since:
      4.8.0