public class LongField extends GenericPowerField<java.lang.Long>
one, zero
Constructor and Description |
---|
LongField() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
addG(java.lang.Long l,
java.lang.Long r)
Adds two elements of type E.
|
java.lang.Long |
cast(java.lang.Object l)
Convert the input to type E.
|
java.lang.Integer |
cmpG(java.lang.Long l,
java.lang.Long r)
Compare two objects of the same type.
|
java.lang.Long |
convertFromInt(java.lang.Integer l)
Attempt to convert argument from an integer
|
java.lang.Integer |
convertToIntE(java.lang.Long l)
If possible convert the argument to an Integer to enable integral powers.
|
java.lang.Long |
divG(java.lang.Long l,
java.lang.Long r)
Divides two elements of type E.
|
java.lang.Long |
getOne()
Get the multiplicative identity for this field.
|
java.lang.Long |
getZero()
Get the additive identity for this field
|
java.lang.Long |
modG(java.lang.Long l,
java.lang.Long r)
Modulus of two elements of type E.
|
java.lang.Long |
mulG(java.lang.Long l,
java.lang.Long r)
Multiplies two elements of type E.
|
java.lang.Long |
negG(java.lang.Long l)
Negates an elements of type E.
|
static long |
power(long l,
long r) |
java.lang.Long |
powNonInt(java.lang.Long l,
java.lang.Long r)
Called when the power is not an integer
|
java.lang.Long |
subG(java.lang.Long l,
java.lang.Long r)
Subtracts two elements of type E.
|
powG, powI
add, and, cmp, convertToInt, div, mod, mul, neg, not, or, pow, sub
public java.lang.Long addG(java.lang.Long l, java.lang.Long r) throws EvaluationException
GenericField
addG
in class GenericField<java.lang.Long>
l
- lhs argumentr
- rhs argumentEvaluationException
- on errorpublic java.lang.Integer cmpG(java.lang.Long l, java.lang.Long r) throws EvaluationException
GenericField
cmpG
in class GenericField<java.lang.Long>
l
- left argumentr
- right argumentEvaluationException
public java.lang.Long cast(java.lang.Object l)
GenericField
cast
in class GenericField<java.lang.Long>
public java.lang.Long divG(java.lang.Long l, java.lang.Long r) throws EvaluationException
GenericField
divG
in class GenericField<java.lang.Long>
l
- numeratorr
- denominatorEvaluationException
- on errorpublic java.lang.Long modG(java.lang.Long l, java.lang.Long r) throws EvaluationException
GenericField
modG
in class GenericField<java.lang.Long>
l
- lhs argumentr
- rhs argumentEvaluationException
- on errorpublic java.lang.Long mulG(java.lang.Long l, java.lang.Long r) throws EvaluationException
GenericField
mulG
in class GenericField<java.lang.Long>
l
- lhs argumentr
- rhs argumentEvaluationException
- on errorpublic java.lang.Long negG(java.lang.Long l) throws EvaluationException
GenericField
negG
in class GenericField<java.lang.Long>
l
- the argumentEvaluationException
- on errorpublic java.lang.Long powNonInt(java.lang.Long l, java.lang.Long r) throws EvaluationException
GenericPowerField
powNonInt
in class GenericPowerField<java.lang.Long>
EvaluationException
public java.lang.Long subG(java.lang.Long l, java.lang.Long r) throws EvaluationException
GenericField
subG
in class GenericField<java.lang.Long>
l
- lhs argumentr
- rhs argumentEvaluationException
- on errorpublic static long power(long l, long r)
public java.lang.Integer convertToIntE(java.lang.Long l) throws EvaluationException
GenericField
powG(E,E)
method will be called.convertToIntE
in class GenericField<java.lang.Long>
l
- argument to convert.EvaluationException
public java.lang.Long convertFromInt(java.lang.Integer l) throws EvaluationException
IntegerConvertor
convertFromInt
in interface IntegerConvertor
convertFromInt
in class GenericField<java.lang.Long>
l
- value to convertEvaluationException
public java.lang.Long getOne()
FieldI
getOne
in interface FieldI
getOne
in class GenericField<java.lang.Long>
public java.lang.Long getZero()
FieldI
getZero
in interface FieldI
getZero
in class GenericField<java.lang.Long>
Copyright © 2018 Singular Systems http://www.singularsys.com/jep