Package com.gdblab.pathAlgebra.syntax
Class ComplexFunction
- java.lang.Object
-
- com.gdblab.pathAlgebra.syntax.ComplexFunction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ComplexFunction>
public class ComplexFunction extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ComplexFunction>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameADDITIONAL_ARGName of thecom.gdblab.pathAlgebra.syntax.ComplexFunction.additionalArgfield.java.lang.StringadditionalArgstatic NameINNER_FUNCTIONName of thecom.gdblab.pathAlgebra.syntax.ComplexFunction.innerFunctionfield.FunctioninnerFunctionjava.lang.Stringnamestatic NameNAMEName of thecom.gdblab.pathAlgebra.syntax.ComplexFunction.namefield.static NameTYPE_Name of thecom.gdblab.pathAlgebra.syntax.ComplexFunctiontype.
-
Constructor Summary
Constructors Constructor Description ComplexFunction(java.lang.String name, Function innerFunction, java.lang.String additionalArg)Constructs an immutableComplexFunction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ComplexFunction other)booleanequals(java.lang.Object other)inthashCode()ComplexFunctionwithAdditionalArg(java.lang.String additionalArg)Returns a copy of thisComplexFunctionwithadditionalArgreplaced.ComplexFunctionwithInnerFunction(Function innerFunction)Returns a copy of thisComplexFunctionwithinnerFunctionreplaced.ComplexFunctionwithName(java.lang.String name)Returns a copy of thisComplexFunctionwithnamereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thecom.gdblab.pathAlgebra.syntax.ComplexFunctiontype.
-
NAME
public static final Name NAME
Name of thecom.gdblab.pathAlgebra.syntax.ComplexFunction.namefield.
-
INNER_FUNCTION
public static final Name INNER_FUNCTION
Name of thecom.gdblab.pathAlgebra.syntax.ComplexFunction.innerFunctionfield.
-
ADDITIONAL_ARG
public static final Name ADDITIONAL_ARG
Name of thecom.gdblab.pathAlgebra.syntax.ComplexFunction.additionalArgfield.
-
name
public final java.lang.String name
-
innerFunction
public final Function innerFunction
-
additionalArg
public final java.lang.String additionalArg
-
-
Constructor Detail
-
ComplexFunction
public ComplexFunction(java.lang.String name, Function innerFunction, java.lang.String additionalArg)Constructs an immutableComplexFunction.
-
-
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(ComplexFunction other)
- Specified by:
compareToin interfacejava.lang.Comparable<ComplexFunction>
-
withName
public ComplexFunction withName(java.lang.String name)
Returns a copy of thisComplexFunctionwithnamereplaced.
-
withInnerFunction
public ComplexFunction withInnerFunction(Function innerFunction)
Returns a copy of thisComplexFunctionwithinnerFunctionreplaced.
-
withAdditionalArg
public ComplexFunction withAdditionalArg(java.lang.String additionalArg)
Returns a copy of thisComplexFunctionwithadditionalArgreplaced.
-
-