Package hydra.pg.query
Class MatchQuery
- java.lang.Object
-
- hydra.pg.query.MatchQuery
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MatchQuery>
public class MatchQuery extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<MatchQuery>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Booleanoptionalstatic NameOPTIONALName of thehydra.pg.query.MatchQuery.optionalfield.java.util.List<Projection>patternstatic NamePATTERNName of thehydra.pg.query.MatchQuery.patternfield.static NameTYPE_Name of thehydra.pg.query.MatchQuerytype.Optional<Expression>wherestatic NameWHEREName of thehydra.pg.query.MatchQuery.wherefield.
-
Constructor Summary
Constructors Constructor Description MatchQuery(java.lang.Boolean optional, java.util.List<Projection> pattern, Optional<Expression> where)Constructs an immutableMatchQuery.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(MatchQuery other)booleanequals(java.lang.Object other)inthashCode()MatchQuerywithOptional(java.lang.Boolean optional)Returns a copy of thisMatchQuerywithoptionalreplaced.MatchQuerywithPattern(java.util.List<Projection> pattern)Returns a copy of thisMatchQuerywithpatternreplaced.MatchQuerywithWhere(Optional<Expression> where)Returns a copy of thisMatchQuerywithwherereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.pg.query.MatchQuerytype.
-
OPTIONAL
public static final Name OPTIONAL
Name of thehydra.pg.query.MatchQuery.optionalfield.
-
PATTERN
public static final Name PATTERN
Name of thehydra.pg.query.MatchQuery.patternfield.
-
WHERE
public static final Name WHERE
Name of thehydra.pg.query.MatchQuery.wherefield.
-
optional
public final java.lang.Boolean optional
-
pattern
public final java.util.List<Projection> pattern
-
where
public final Optional<Expression> where
-
-
Constructor Detail
-
MatchQuery
public MatchQuery(java.lang.Boolean optional, java.util.List<Projection> pattern, Optional<Expression> where)Constructs an immutableMatchQuery.
-
-
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(MatchQuery other)
- Specified by:
compareToin interfacejava.lang.Comparable<MatchQuery>
-
withOptional
public MatchQuery withOptional(java.lang.Boolean optional)
Returns a copy of thisMatchQuerywithoptionalreplaced.
-
withPattern
public MatchQuery withPattern(java.util.List<Projection> pattern)
Returns a copy of thisMatchQuerywithpatternreplaced.
-
withWhere
public MatchQuery withWhere(Optional<Expression> where)
Returns a copy of thisMatchQuerywithwherereplaced.
-
-