Package openGql.grammar
Class AnyShortestPathSearch
- java.lang.Object
-
- openGql.grammar.AnyShortestPathSearch
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AnyShortestPathSearch>
public class AnyShortestPathSearch extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<AnyShortestPathSearch>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Optional<PathMode>modestatic NameMODEName of theopenGql.grammar.AnyShortestPathSearch.modefield.static NameOR_PATHSName of theopenGql.grammar.AnyShortestPathSearch.orPathsfield.Optional<PathOrPaths>orPathsstatic NameTYPE_Name of theopenGql.grammar.AnyShortestPathSearchtype.
-
Constructor Summary
Constructors Constructor Description AnyShortestPathSearch(Optional<PathMode> mode, Optional<PathOrPaths> orPaths)Constructs an immutableAnyShortestPathSearch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AnyShortestPathSearch other)booleanequals(java.lang.Object other)inthashCode()AnyShortestPathSearchwithMode(Optional<PathMode> mode)Returns a copy of thisAnyShortestPathSearchwithmodereplaced.AnyShortestPathSearchwithOrPaths(Optional<PathOrPaths> orPaths)Returns a copy of thisAnyShortestPathSearchwithorPathsreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.AnyShortestPathSearchtype.
-
MODE
public static final Name MODE
Name of theopenGql.grammar.AnyShortestPathSearch.modefield.
-
OR_PATHS
public static final Name OR_PATHS
Name of theopenGql.grammar.AnyShortestPathSearch.orPathsfield.
-
orPaths
public final Optional<PathOrPaths> orPaths
-
-
Constructor Detail
-
AnyShortestPathSearch
public AnyShortestPathSearch(Optional<PathMode> mode, Optional<PathOrPaths> orPaths)
Constructs an immutableAnyShortestPathSearch.
-
-
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(AnyShortestPathSearch other)
- Specified by:
compareToin interfacejava.lang.Comparable<AnyShortestPathSearch>
-
withMode
public AnyShortestPathSearch withMode(Optional<PathMode> mode)
Returns a copy of thisAnyShortestPathSearchwithmodereplaced.
-
withOrPaths
public AnyShortestPathSearch withOrPaths(Optional<PathOrPaths> orPaths)
Returns a copy of thisAnyShortestPathSearchwithorPathsreplaced.
-
-