Interface DataValue<T>

  • Type Parameters:
    T - Type of the value.

    public interface DataValue<T>
    Represents a value given to ExtensionDataBuilder.

    Please do not implement this class, it is an implementation detail. Obtain instances with ValueBuilder.

    • Method Detail

      • getValue

        T getValue()
      • getInformation

        <M> M getInformation​(java.lang.Class<M> ofType)
      • getMetadata

        default <I extends DataValue<T>> java.util.Optional<I> getMetadata​(java.lang.Class<I> metadataType)