Package openGql.grammar
Class OpenGraphType
- java.lang.Object
-
- openGql.grammar.OpenGraphType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OpenGraphType>
public class OpenGraphType extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<OpenGraphType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Booleangraphstatic NameGRAPHName of theopenGql.grammar.OpenGraphType.graphfield.static NameTYPE_Name of theopenGql.grammar.OpenGraphTypetype.Optional<java.lang.Void>typedstatic NameTYPEDName of theopenGql.grammar.OpenGraphType.typedfield.
-
Constructor Summary
Constructors Constructor Description OpenGraphType(Optional<java.lang.Void> typed, java.lang.Boolean graph)Constructs an immutableOpenGraphType.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(OpenGraphType other)booleanequals(java.lang.Object other)inthashCode()OpenGraphTypewithGraph(java.lang.Boolean graph)Returns a copy of thisOpenGraphTypewithgraphreplaced.OpenGraphTypewithTyped(Optional<java.lang.Void> typed)Returns a copy of thisOpenGraphTypewithtypedreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.OpenGraphTypetype.
-
TYPED
public static final Name TYPED
Name of theopenGql.grammar.OpenGraphType.typedfield.
-
GRAPH
public static final Name GRAPH
Name of theopenGql.grammar.OpenGraphType.graphfield.
-
typed
public final Optional<java.lang.Void> typed
-
graph
public final java.lang.Boolean graph
-
-
Constructor Detail
-
OpenGraphType
public OpenGraphType(Optional<java.lang.Void> typed, java.lang.Boolean graph)
Constructs an immutableOpenGraphType.
-
-
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(OpenGraphType other)
- Specified by:
compareToin interfacejava.lang.Comparable<OpenGraphType>
-
withTyped
public OpenGraphType withTyped(Optional<java.lang.Void> typed)
Returns a copy of thisOpenGraphTypewithtypedreplaced.
-
withGraph
public OpenGraphType withGraph(java.lang.Boolean graph)
Returns a copy of thisOpenGraphTypewithgraphreplaced.
-
-