Package edu.jas.poly
Class ExpVectorPair
- java.lang.Object
-
- 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
Constructors Constructor Description ExpVectorPair(ExpVector e, ExpVector f)Constructors for ExpVectorPair.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(ExpVectorPair b)equals.booleanequals(java.lang.Object B)equals.ExpVectorgetFirst()ExpVectorgetSecond()inthashCode()hash code.booleanisMultiple(ExpVectorPair p)isMultiple.java.lang.StringtoString()toString.longtotalDeg()
-
-
-
Constructor Detail
-
ExpVectorPair
public ExpVectorPair(ExpVector e, ExpVector f)
Constructors for ExpVectorPair.- Parameters:
e- first part.f- second part.
-
-
Method Detail
-
totalDeg
public long totalDeg()
- Returns:
- total degree of both parts.
-
toString
public java.lang.String toString()
toString.- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object B)
equals.- Overrides:
equalsin classjava.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:
hashCodein classjava.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.
-
-