Package openGql.grammar
Class RelativeDirectoryPath
- java.lang.Object
-
- openGql.grammar.RelativeDirectoryPath
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RelativeDirectoryPath>
public class RelativeDirectoryPath extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<RelativeDirectoryPath>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NamePARENT_DIRECTORIESName of theopenGql.grammar.RelativeDirectoryPath.parentDirectoriesfield.java.lang.IntegerparentDirectoriesstatic NameSIMPLE_PATHName of theopenGql.grammar.RelativeDirectoryPath.simplePathfield.Optional<java.util.List<java.lang.String>>simplePathstatic NameTYPE_Name of theopenGql.grammar.RelativeDirectoryPathtype.
-
Constructor Summary
Constructors Constructor Description RelativeDirectoryPath(java.lang.Integer parentDirectories, Optional<java.util.List<java.lang.String>> simplePath)Constructs an immutableRelativeDirectoryPath.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(RelativeDirectoryPath other)booleanequals(java.lang.Object other)inthashCode()RelativeDirectoryPathwithParentDirectories(java.lang.Integer parentDirectories)Returns a copy of thisRelativeDirectoryPathwithparentDirectoriesreplaced.RelativeDirectoryPathwithSimplePath(Optional<java.util.List<java.lang.String>> simplePath)Returns a copy of thisRelativeDirectoryPathwithsimplePathreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.RelativeDirectoryPathtype.
-
PARENT_DIRECTORIES
public static final Name PARENT_DIRECTORIES
Name of theopenGql.grammar.RelativeDirectoryPath.parentDirectoriesfield.
-
SIMPLE_PATH
public static final Name SIMPLE_PATH
Name of theopenGql.grammar.RelativeDirectoryPath.simplePathfield.
-
parentDirectories
public final java.lang.Integer parentDirectories
-
simplePath
public final Optional<java.util.List<java.lang.String>> simplePath
-
-
Constructor Detail
-
RelativeDirectoryPath
public RelativeDirectoryPath(java.lang.Integer parentDirectories, Optional<java.util.List<java.lang.String>> simplePath)Constructs an immutableRelativeDirectoryPath.
-
-
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(RelativeDirectoryPath other)
- Specified by:
compareToin interfacejava.lang.Comparable<RelativeDirectoryPath>
-
withParentDirectories
public RelativeDirectoryPath withParentDirectories(java.lang.Integer parentDirectories)
Returns a copy of thisRelativeDirectoryPathwithparentDirectoriesreplaced.
-
withSimplePath
public RelativeDirectoryPath withSimplePath(Optional<java.util.List<java.lang.String>> simplePath)
Returns a copy of thisRelativeDirectoryPathwithsimplePathreplaced.
-
-