Package openGql.grammar
Class AnyPathSearch
- java.lang.Object
-
- openGql.grammar.AnyPathSearch
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AnyPathSearch>
public class AnyPathSearch extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<AnyPathSearch>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Optional<PathMode>modestatic NameMODEName of theopenGql.grammar.AnyPathSearch.modefield.static NameNUMBER_OF_PATHSName of theopenGql.grammar.AnyPathSearch.numberOfPathsfield.Optional<NonNegativeIntegerSpecification>numberOfPathsstatic NameOR_PATHSName of theopenGql.grammar.AnyPathSearch.orPathsfield.Optional<PathOrPaths>orPathsstatic NameTYPE_Name of theopenGql.grammar.AnyPathSearchtype.
-
Constructor Summary
Constructors Constructor Description AnyPathSearch(Optional<NonNegativeIntegerSpecification> numberOfPaths, Optional<PathMode> mode, Optional<PathOrPaths> orPaths)Constructs an immutableAnyPathSearch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AnyPathSearch other)booleanequals(java.lang.Object other)inthashCode()AnyPathSearchwithMode(Optional<PathMode> mode)Returns a copy of thisAnyPathSearchwithmodereplaced.AnyPathSearchwithNumberOfPaths(Optional<NonNegativeIntegerSpecification> numberOfPaths)Returns a copy of thisAnyPathSearchwithnumberOfPathsreplaced.AnyPathSearchwithOrPaths(Optional<PathOrPaths> orPaths)Returns a copy of thisAnyPathSearchwithorPathsreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.AnyPathSearchtype.
-
NUMBER_OF_PATHS
public static final Name NUMBER_OF_PATHS
Name of theopenGql.grammar.AnyPathSearch.numberOfPathsfield.
-
MODE
public static final Name MODE
Name of theopenGql.grammar.AnyPathSearch.modefield.
-
OR_PATHS
public static final Name OR_PATHS
Name of theopenGql.grammar.AnyPathSearch.orPathsfield.
-
numberOfPaths
public final Optional<NonNegativeIntegerSpecification> numberOfPaths
-
orPaths
public final Optional<PathOrPaths> orPaths
-
-
Constructor Detail
-
AnyPathSearch
public AnyPathSearch(Optional<NonNegativeIntegerSpecification> numberOfPaths, Optional<PathMode> mode, Optional<PathOrPaths> orPaths)
Constructs an immutableAnyPathSearch.
-
-
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(AnyPathSearch other)
- Specified by:
compareToin interfacejava.lang.Comparable<AnyPathSearch>
-
withNumberOfPaths
public AnyPathSearch withNumberOfPaths(Optional<NonNegativeIntegerSpecification> numberOfPaths)
Returns a copy of thisAnyPathSearchwithnumberOfPathsreplaced.
-
withMode
public AnyPathSearch withMode(Optional<PathMode> mode)
Returns a copy of thisAnyPathSearchwithmodereplaced.
-
withOrPaths
public AnyPathSearch withOrPaths(Optional<PathOrPaths> orPaths)
Returns a copy of thisAnyPathSearchwithorPathsreplaced.
-
-