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