Class Tuple

java.lang.Object
pcap.common.tuple.Tuple
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PairImpl, QuartetImpl, QuintetImpl, TripletImpl

@Inclubating
public abstract class Tuple
extends Object
implements Serializable
Helper class for create tuple.
Author:
Ardika Rommy Sanjaya
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    Tuple()  
  • Method Summary

    Modifier and Type Method Description
    static <L,​ BLM,​ M,​ BRM,​ R>
    Quintet<L,​BLM,​M,​BRM,​R>
    of​(L left, BLM betweenLeftAndMiddle, M middle, BRM betweenRightAndMiddle, R right)  
    static <L,​ ML,​ MR,​ R>
    Quartet<L,​ML,​MR,​R>
    of​(L left, ML middleLeft, MR middleRight, R right)  
    static <L,​ M,​ R> Triplet<L,​M,​R> of​(L left, M middle, R right)  
    static <L,​ R> Pair<L,​R> of​(L left, R right)  
    abstract int size()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • size

      public abstract int size()
    • of

      public static <L,​ R> Pair<L,​R> of​(L left, R right)
    • of

      public static <L,​ M,​ R> Triplet<L,​M,​R> of​(L left, M middle, R right)
    • of

      public static <L,​ ML,​ MR,​ R> Quartet<L,​ML,​MR,​R> of​(L left, ML middleLeft, MR middleRight, R right)
    • of

      public static <L,​ BLM,​ M,​ BRM,​ R> Quintet<L,​BLM,​M,​BRM,​R> of​(L left, BLM betweenLeftAndMiddle, M middle, BRM betweenRightAndMiddle, R right)