Package com.iizix

Interface ICircularReference<INPUT,TARGET>


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

    Modifier and Type
    Method
    Description
    getNext(TARGET output)
    Gets the next input reference from a target reference.
    Gets the target references for an input reference.
    boolean
    isValid(INPUT input)
    Checks if the input reference is valid.
  • Method Details

    • 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.