Package openGql.grammar
Class SourcePredicate
- java.lang.Object
-
- openGql.grammar.SourcePredicate
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SourcePredicate>
public class SourcePredicate extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<SourcePredicate>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Booleannotstatic NameNOTName of theopenGql.grammar.SourcePredicate.notfield.static NameSOURCE_OFName of theopenGql.grammar.SourcePredicate.sourceOffield.java.lang.StringsourceOfstatic NameTYPE_Name of theopenGql.grammar.SourcePredicatetype.
-
Constructor Summary
Constructors Constructor Description SourcePredicate(java.lang.Boolean not, java.lang.String sourceOf)Constructs an immutableSourcePredicate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SourcePredicate other)booleanequals(java.lang.Object other)inthashCode()SourcePredicatewithNot(java.lang.Boolean not)Returns a copy of thisSourcePredicatewithnotreplaced.SourcePredicatewithSourceOf(java.lang.String sourceOf)Returns a copy of thisSourcePredicatewithsourceOfreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.SourcePredicatetype.
-
NOT
public static final Name NOT
Name of theopenGql.grammar.SourcePredicate.notfield.
-
SOURCE_OF
public static final Name SOURCE_OF
Name of theopenGql.grammar.SourcePredicate.sourceOffield.
-
not
public final java.lang.Boolean not
-
sourceOf
public final java.lang.String sourceOf
-
-
Constructor Detail
-
SourcePredicate
public SourcePredicate(java.lang.Boolean not, java.lang.String sourceOf)Constructs an immutableSourcePredicate.
-
-
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(SourcePredicate other)
- Specified by:
compareToin interfacejava.lang.Comparable<SourcePredicate>
-
withNot
public SourcePredicate withNot(java.lang.Boolean not)
Returns a copy of thisSourcePredicatewithnotreplaced.
-
withSourceOf
public SourcePredicate withSourceOf(java.lang.String sourceOf)
Returns a copy of thisSourcePredicatewithsourceOfreplaced.
-
-