Package openGql.grammar
Class DestinationPredicate
- java.lang.Object
-
- openGql.grammar.DestinationPredicate
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DestinationPredicate>
public class DestinationPredicate extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<DestinationPredicate>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameDESTINATION_OFName of theopenGql.grammar.DestinationPredicate.destinationOffield.java.lang.StringdestinationOfstatic NameNODE_REFERENCEName of theopenGql.grammar.DestinationPredicate.nodeReferencefield.java.lang.StringnodeReferencejava.lang.Booleannotstatic NameNOTName of theopenGql.grammar.DestinationPredicate.notfield.static NameTYPE_Name of theopenGql.grammar.DestinationPredicatetype.
-
Constructor Summary
Constructors Constructor Description DestinationPredicate(java.lang.String nodeReference, java.lang.Boolean not, java.lang.String destinationOf)Constructs an immutableDestinationPredicate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(DestinationPredicate other)booleanequals(java.lang.Object other)inthashCode()DestinationPredicatewithDestinationOf(java.lang.String destinationOf)Returns a copy of thisDestinationPredicatewithdestinationOfreplaced.DestinationPredicatewithNodeReference(java.lang.String nodeReference)Returns a copy of thisDestinationPredicatewithnodeReferencereplaced.DestinationPredicatewithNot(java.lang.Boolean not)Returns a copy of thisDestinationPredicatewithnotreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.DestinationPredicatetype.
-
NODE_REFERENCE
public static final Name NODE_REFERENCE
Name of theopenGql.grammar.DestinationPredicate.nodeReferencefield.
-
NOT
public static final Name NOT
Name of theopenGql.grammar.DestinationPredicate.notfield.
-
DESTINATION_OF
public static final Name DESTINATION_OF
Name of theopenGql.grammar.DestinationPredicate.destinationOffield.
-
nodeReference
public final java.lang.String nodeReference
-
not
public final java.lang.Boolean not
-
destinationOf
public final java.lang.String destinationOf
-
-
Constructor Detail
-
DestinationPredicate
public DestinationPredicate(java.lang.String nodeReference, java.lang.Boolean not, java.lang.String destinationOf)Constructs an immutableDestinationPredicate.
-
-
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(DestinationPredicate other)
- Specified by:
compareToin interfacejava.lang.Comparable<DestinationPredicate>
-
withNodeReference
public DestinationPredicate withNodeReference(java.lang.String nodeReference)
Returns a copy of thisDestinationPredicatewithnodeReferencereplaced.
-
withNot
public DestinationPredicate withNot(java.lang.Boolean not)
Returns a copy of thisDestinationPredicatewithnotreplaced.
-
withDestinationOf
public DestinationPredicate withDestinationOf(java.lang.String destinationOf)
Returns a copy of thisDestinationPredicatewithdestinationOfreplaced.
-
-