Class InvPair

    • Constructor Detail

      • InvPair

        public InvPair()
      • InvPair

        public InvPair​(long current,
                       IAtom atom)
    • Method Detail

      • getLast

        public long getLast()
      • setCurr

        public void setCurr​(long newCurr)
        Set the value of the seed. Note that use of this method implies that a new prime number is desired. If so, make sure to call setPrime() to ensure that a new prime number is obtained using the new seed. Todo make the following robust!
        See Also:
        getCurr(), setPrime()
      • equals

        public boolean equals​(Object object)
        Check whether this instance equals another instance.
        equals in class Object
        object - An instance of InvPair
        true if they are equal, false otherwise
      • hashCode

        public int hashCode()
        hashCode in class Object
      • setLast

        public void setLast​(long newLast)
      • setAtom

        public void setAtom​(IAtom newAtom)
      • getAtom

        public IAtom getAtom()
      • commit

        public void commit()
      • toString

        public String toString()
        String representation.
        toString in class Object
        The string representation of the class.
      • getPrime

        public int getPrime()
        Get the current prime number.
        The current prime number
        See Also:
      • setPrime

        public void setPrime()
        Sets the prime number based on the current seed. Note that if you change the seed via setCurr(long), you should make sure to call this method so that a new prime number is available via getPrime()
        See Also:
        setCurr(long), getPrime()