Module hw06

Interface IDyad<F,​S>

Type Parameters:
F - The type of the first element
S - The type of the second element
All Known Implementing Classes:
Dyad

public interface IDyad<F,​S>
A representation of a pair of objects
Author:
swong
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the first element
    Get the second element
  • Method Details

    • getFirst

      F getFirst()
      Get the first element
      Returns:
      The first element
    • getSecond

      S getSecond()
      Get the second element
      Returns:
      The second element