Interface SocketHint<T>

    • Method Detail

      • getIdentifier

        java.lang.String getIdentifier()
        The name for this socket.
      • getType

        java.lang.Class<T> getType()
      • isCompatibleWith

        boolean isCompatibleWith​(SocketHint other)
        Determines if this is able to contain the type of value that the other socket hint contains.
        Parameters:
        other - The other socket hint to check if this hint's type can contain it
        Returns:
        True the two can be connected together
      • getView

        SocketHint.View getView()
        The type of view that this hint reccomends being displayed with.
      • getDomain

        java.util.Optional<T[]> getDomain()
        A hint at the range of values that this socket can hold. For numeric types, this can consist of two elements that correspond.
      • getTypeLabel

        java.lang.String getTypeLabel()
        A user-presentable string to represent the type of this socket. This may be empty.
      • createInitialValue

        java.util.Optional<T> createInitialValue()
        Constructs the initial value if an initial value provider was supplied.
        Returns:
        Optionally, the initial value for the socket