Package jflex.base

Class Pair<A,​B>


  • public class Pair<A,​B>
    extends java.lang.Object
    Generic immutable pair.
    Version:
    JFlex 1.8.2
    • Field Summary

      Fields 
      Modifier and Type Field Description
      A fst  
      B snd  
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(A fst, B snd)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • fst

        public final A fst
      • snd

        public final B snd
    • Constructor Detail

      • Pair

        public Pair​(A fst,
                    B snd)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object