Package com.iizix

Interface ICircularReference<INPUT,​TARGET>

  • All Known Implementing Classes:
    EditorSelectorReference

    public interface ICircularReference<INPUT,​TARGET>
    Interface used to find circular references.
    Author:
    Christopher Mindus
    • Method Detail

      • isValid

        boolean isValid​(INPUT input)
        Checks if the input reference is valid.
        Parameters:
        input - The input reference.
        Returns:
        true if this is a input valid reference.
      • getReferences

        TARGET[] getReferences​(INPUT input)
        Gets the target references for an input reference.
        Parameters:
        input - The input reference.
        Returns:
        The targets references or null if not found.
      • getNext

        INPUT getNext​(TARGET output)
        Gets the next input reference from a target reference.
        Parameters:
        output - The output from last circular check.
        Returns:
        The next input reference or null if not found.