Package openGql.grammar
Class PowerFunction
- java.lang.Object
-
- openGql.grammar.PowerFunction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PowerFunction>
public class PowerFunction extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<PowerFunction>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description NumericValueExpressionbasestatic NameBASEName of theopenGql.grammar.PowerFunction.basefield.NumericValueExpressionexponentstatic NameEXPONENTName of theopenGql.grammar.PowerFunction.exponentfield.static NameTYPE_Name of theopenGql.grammar.PowerFunctiontype.
-
Constructor Summary
Constructors Constructor Description PowerFunction(NumericValueExpression base, NumericValueExpression exponent)Constructs an immutablePowerFunction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(PowerFunction other)booleanequals(java.lang.Object other)inthashCode()PowerFunctionwithBase(NumericValueExpression base)Returns a copy of thisPowerFunctionwithbasereplaced.PowerFunctionwithExponent(NumericValueExpression exponent)Returns a copy of thisPowerFunctionwithexponentreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.PowerFunctiontype.
-
BASE
public static final Name BASE
Name of theopenGql.grammar.PowerFunction.basefield.
-
EXPONENT
public static final Name EXPONENT
Name of theopenGql.grammar.PowerFunction.exponentfield.
-
base
public final NumericValueExpression base
-
exponent
public final NumericValueExpression exponent
-
-
Constructor Detail
-
PowerFunction
public PowerFunction(NumericValueExpression base, NumericValueExpression exponent)
Constructs an immutablePowerFunction.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(PowerFunction other)
- Specified by:
compareToin interfacejava.lang.Comparable<PowerFunction>
-
withBase
public PowerFunction withBase(NumericValueExpression base)
Returns a copy of thisPowerFunctionwithbasereplaced.
-
withExponent
public PowerFunction withExponent(NumericValueExpression exponent)
Returns a copy of thisPowerFunctionwithexponentreplaced.
-
-