Package openGql.grammar
Class GqlProgram
- java.lang.Object
-
- openGql.grammar.GqlProgram
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<GqlProgram>
public class GqlProgram extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<GqlProgram>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Optional<ProgramActivity>activitystatic NameACTIVITYName of theopenGql.grammar.GqlProgram.activityfield.Optional<java.lang.Void>closestatic NameCLOSEName of theopenGql.grammar.GqlProgram.closefield.static NameTYPE_Name of theopenGql.grammar.GqlProgramtype.
-
Constructor Summary
Constructors Constructor Description GqlProgram(Optional<ProgramActivity> activity, Optional<java.lang.Void> close)Constructs an immutableGqlProgram.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(GqlProgram other)booleanequals(java.lang.Object other)inthashCode()GqlProgramwithActivity(Optional<ProgramActivity> activity)Returns a copy of thisGqlProgramwithactivityreplaced.GqlProgramwithClose(Optional<java.lang.Void> close)Returns a copy of thisGqlProgramwithclosereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.GqlProgramtype.
-
ACTIVITY
public static final Name ACTIVITY
Name of theopenGql.grammar.GqlProgram.activityfield.
-
CLOSE
public static final Name CLOSE
Name of theopenGql.grammar.GqlProgram.closefield.
-
activity
public final Optional<ProgramActivity> activity
-
close
public final Optional<java.lang.Void> close
-
-
Constructor Detail
-
GqlProgram
public GqlProgram(Optional<ProgramActivity> activity, Optional<java.lang.Void> close)
Constructs an immutableGqlProgram.
-
-
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(GqlProgram other)
- Specified by:
compareToin interfacejava.lang.Comparable<GqlProgram>
-
withActivity
public GqlProgram withActivity(Optional<ProgramActivity> activity)
Returns a copy of thisGqlProgramwithactivityreplaced.
-
withClose
public GqlProgram withClose(Optional<java.lang.Void> close)
Returns a copy of thisGqlProgramwithclosereplaced.
-
-