Package com.gdblab.pathAlgebra.syntax
Class NestedFunction
- java.lang.Object
-
- com.gdblab.pathAlgebra.syntax.NestedFunction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NestedFunction>
public class NestedFunction extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<NestedFunction>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameINNER_FUNCTIONName of thecom.gdblab.pathAlgebra.syntax.NestedFunction.innerFunctionfield.FunctioninnerFunctionjava.lang.Stringnamestatic NameNAMEName of thecom.gdblab.pathAlgebra.syntax.NestedFunction.namefield.static NameTYPE_Name of thecom.gdblab.pathAlgebra.syntax.NestedFunctiontype.
-
Constructor Summary
Constructors Constructor Description NestedFunction(java.lang.String name, Function innerFunction)Constructs an immutableNestedFunction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(NestedFunction other)booleanequals(java.lang.Object other)inthashCode()NestedFunctionwithInnerFunction(Function innerFunction)Returns a copy of thisNestedFunctionwithinnerFunctionreplaced.NestedFunctionwithName(java.lang.String name)Returns a copy of thisNestedFunctionwithnamereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thecom.gdblab.pathAlgebra.syntax.NestedFunctiontype.
-
NAME
public static final Name NAME
Name of thecom.gdblab.pathAlgebra.syntax.NestedFunction.namefield.
-
INNER_FUNCTION
public static final Name INNER_FUNCTION
Name of thecom.gdblab.pathAlgebra.syntax.NestedFunction.innerFunctionfield.
-
name
public final java.lang.String name
-
innerFunction
public final Function innerFunction
-
-
Constructor Detail
-
NestedFunction
public NestedFunction(java.lang.String name, Function innerFunction)Constructs an immutableNestedFunction.
-
-
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(NestedFunction other)
- Specified by:
compareToin interfacejava.lang.Comparable<NestedFunction>
-
withName
public NestedFunction withName(java.lang.String name)
Returns a copy of thisNestedFunctionwithnamereplaced.
-
withInnerFunction
public NestedFunction withInnerFunction(Function innerFunction)
Returns a copy of thisNestedFunctionwithinnerFunctionreplaced.
-
-