Class Pair<T1,​T2>

  • All Implemented Interfaces:
    jaca.ToProlog, java.io.Serializable

    public class Pair<T1,​T2>
    extends java.lang.Object
    implements jaca.ToProlog, java.io.Serializable
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) T1 l  
      (package private) T2 r  
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(T1 l, T2 r)  
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getAsPrologStr()  
      T1 getLeft()  
      T2 getRight()  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Pair

        public Pair​(T1 l,
                    T2 r)
    • Method Detail

      • getLeft

        public T1 getLeft()
      • getRight

        public T2 getRight()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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

        public java.lang.String getAsPrologStr()
        Specified by:
        getAsPrologStr in interface jaca.ToProlog