Class UTrio<F,S,T>

java.lang.Object
ushiosan.jvm.content.UPair<F,S>
ushiosan.jvm.content.UTrio<F,S,T>

public class UTrio<F,S,T> extends UPair<F,S>
  • Field Details

    • third

      public final T third
      Third element
  • Constructor Details

    • UTrio

      public UTrio(F first, S second, T third)
      Default constructor
      Parameters:
      first - first element
      second - second element
      third - third element
  • Method Details

    • make

      @NotNull public static <F, S, T> @NotNull UTrio<F,S,T> make(F first, S second, T third)
      Shortcut trio instance
      Type Parameters:
      F - generic first type
      S - generic second type
      T - generic third type
      Parameters:
      first - first value
      second - second value
      third - third value
      Returns:
      instance of UTrio class
    • make

      @NotNull public static <F, S, T> @NotNull UTrio<F,S,T> make(@NotNull @NotNull UPair<F,S> uPair)
      Copies the content of a UPair object and converts it to a UTrio object.
      Type Parameters:
      F - generic first type
      S - generic second type
      T - generic third type
      Parameters:
      uPair - the pair object to copy
      Returns:
      instance of UTrio class