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>
A nested path algebra function taking a name and an inner function- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNestedFunction.BuilderA fluent builder forNestedFunction.
-
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 Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NestedFunction.Builderbuilder()Creates a new fluent builder forNestedFunction.intcompareTo(NestedFunction other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()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
-
toString
public java.lang.String toString()
- Overrides:
toStringin 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.
-
builder
public static NestedFunction.Builder builder()
Creates a new fluent builder forNestedFunction.
-
-