edu.jas.poly
Class ExpVectorPair

java.lang.Object
  extended by edu.jas.poly.ExpVectorPair
All Implemented Interfaces:
java.io.Serializable

public class ExpVectorPair
extends java.lang.Object
implements java.io.Serializable

ExpVectorPair implements pairs of exponent vectors for S-polynomials. Objects of this class are immutable.

Author:
Heinz Kredel
See Also:
Serialized Form

Constructor Summary
ExpVectorPair(ExpVector e, ExpVector f)
          Constructors for ExpVectorPair.
 
Method Summary
 boolean equals(ExpVectorPair b)
          equals.
 boolean equals(java.lang.Object B)
          equals.
 ExpVector getFirst()
           
 ExpVector getSecond()
           
 int hashCode()
          hash code.
 boolean isMultiple(ExpVectorPair p)
          isMultiple.
 java.lang.String toString()
          toString.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExpVectorPair

public ExpVectorPair(ExpVector e,
                     ExpVector f)
Constructors for ExpVectorPair.

Parameters:
e - first part.
f - second part.
Method Detail

getFirst

public ExpVector getFirst()
Returns:
first part.

getSecond

public ExpVector getSecond()
Returns:
second part.

toString

public java.lang.String toString()
toString.

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object B)
equals.

Overrides:
equals in class java.lang.Object
Parameters:
B - other.
Returns:
true, if this == b, else false.

equals

public boolean equals(ExpVectorPair b)
equals.

Parameters:
b - other.
Returns:
true, if this == b, else false.

hashCode

public int hashCode()
hash code.

Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

isMultiple

public boolean isMultiple(ExpVectorPair p)
isMultiple.

Parameters:
p - other.
Returns:
true, if this is a multiple of b, else false.