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