Package util

Class Triple<L,M,R>

java.lang.Object
util.Triple<L,M,R>

public class Triple<L,M,R> extends Object
A Triple is a tupel of three different values with potentially three different types.
Since:
25.06.2021
Author:
Juyas
  • Constructor Details

    • Triple

      public Triple(L left, M middle, R right)
      Creates a triple of three values.
      Parameters:
      left - first value
      middle - second value
      right - third value
    • Triple

      public Triple()
      Creates a Triple with no values.
  • Method Details

    • getLeft

      public L getLeft()
      See Also:
      • left
    • setLeft

      public void setLeft(L left)
      See Also:
      • left
    • getMiddle

      public M getMiddle()
      See Also:
      • middle
    • setMiddle

      public void setMiddle(M middle)
      See Also:
      • middle
    • getRight

      public R getRight()
      See Also:
      • right
    • setRight

      public void setRight(R right)
      See Also:
      • right