Interface MatchingClosure<T>


public interface MatchingClosure<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    match(T t1, T t2)
    Links two agents to form a matching pair.
  • Method Details

    • match

      void match(@NonNull T t1, @NonNull T t2)
      Links two agents to form a matching pair.
      Parameters:
      t1 - An agent.
      t2 - The agent's partner.
      Throws:
      NullPointerException - when any of the input parameters is null.