Interface TypedKey<T>

  • Type Parameters:
    T - type of key
    All Known Implementing Classes:
    TypedKey.DefaultTypedKey

    public interface TypedKey<T>
    Represents a type-safe key for mapping to an object.
    See Also:
    TypedMap
    • Method Detail

      • of

        static <T> TypedKey<T> of()
        Constructs a TypedKey with a random UUID for its name.
      • of

        static <T> TypedKey<T> of​(String name)
        Constructs a TypedKey with a custom name.
        Parameters:
        name - identifier to give to this TypedKey