Class LinkedSocketHint

    • Method Detail

      • linkedInputSocket

        public InputSocket<?> linkedInputSocket​(java.lang.String hintIdentifier)
        Creates an InputSocket that is linked to this SocketHint.
        Parameters:
        hintIdentifier - The identifier for this socket's SocketHint
        Returns:
        A socket hint that's socket type is determined by this SocketHint
      • linkedOutputSocket

        public OutputSocket linkedOutputSocket​(java.lang.String hintIdentifier)
        Creates an input socket that is linked to this Socket This output socket will automatically be disconnected when there is no longer an input socket to guarantee the type of this SocketHint.
        Parameters:
        hintIdentifier - The identifier for this socket's SocketHint
        Returns:
        An OutputSocket that's type is dynamically linked to this SocketHint
      • isCompatibleWith

        public boolean isCompatibleWith​(SocketHint other)
        Description copied from interface: SocketHint
        Determines if this is able to contain the type of value that the other socket hint contains.
        Specified by:
        isCompatibleWith in interface SocketHint
        Overrides:
        isCompatibleWith in class SocketHint.SocketHintDecorator
        Parameters:
        other - The other socket hint to check if this hint's type can contain it
        Returns:
        True the two can be connected together