Package com.gdblab.pathAlgebra.syntax
Class SimpleFunction
- java.lang.Object
-
- com.gdblab.pathAlgebra.syntax.SimpleFunction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SimpleFunction>
public class SimpleFunction extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<SimpleFunction>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringargumentstatic NameARGUMENTName of thecom.gdblab.pathAlgebra.syntax.SimpleFunction.argumentfield.java.lang.Stringnamestatic NameNAMEName of thecom.gdblab.pathAlgebra.syntax.SimpleFunction.namefield.static NameTYPE_Name of thecom.gdblab.pathAlgebra.syntax.SimpleFunctiontype.
-
Constructor Summary
Constructors Constructor Description SimpleFunction(java.lang.String name, java.lang.String argument)Constructs an immutableSimpleFunction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SimpleFunction other)booleanequals(java.lang.Object other)inthashCode()SimpleFunctionwithArgument(java.lang.String argument)Returns a copy of thisSimpleFunctionwithargumentreplaced.SimpleFunctionwithName(java.lang.String name)Returns a copy of thisSimpleFunctionwithnamereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thecom.gdblab.pathAlgebra.syntax.SimpleFunctiontype.
-
NAME
public static final Name NAME
Name of thecom.gdblab.pathAlgebra.syntax.SimpleFunction.namefield.
-
ARGUMENT
public static final Name ARGUMENT
Name of thecom.gdblab.pathAlgebra.syntax.SimpleFunction.argumentfield.
-
name
public final java.lang.String name
-
argument
public final java.lang.String argument
-
-
Constructor Detail
-
SimpleFunction
public SimpleFunction(java.lang.String name, java.lang.String argument)Constructs an immutableSimpleFunction.
-
-
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(SimpleFunction other)
- Specified by:
compareToin interfacejava.lang.Comparable<SimpleFunction>
-
withName
public SimpleFunction withName(java.lang.String name)
Returns a copy of thisSimpleFunctionwithnamereplaced.
-
withArgument
public SimpleFunction withArgument(java.lang.String argument)
Returns a copy of thisSimpleFunctionwithargumentreplaced.
-
-