Class StringStartsWith<O,A extends CharSequence>
- java.lang.Object
-
- com.googlecode.cqengine.query.simple.SimpleQuery<O,A>
-
- com.googlecode.cqengine.query.simple.StringStartsWith<O,A>
-
- All Implemented Interfaces:
Query<O>
public class StringStartsWith<O,A extends CharSequence> extends SimpleQuery<O,A>
Asserts than aCharSequence
-based attribute starts with a givenCharSequence
-based prefix.- Author:
- Niall Gallagher
-
-
Field Summary
-
Fields inherited from class com.googlecode.cqengine.query.simple.SimpleQuery
attribute, attributeIsSimple, simpleAttribute
-
-
Constructor Summary
Constructors Constructor Description StringStartsWith(Attribute<O,A> attribute, A value)
Creates a newSimpleQuery
initialized to make assertions on values of the specified attribute
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
calcHashCode()
boolean
equals(Object o)
A
getValue()
protected boolean
matchesNonSimpleAttribute(Attribute<O,A> attribute, O object, QueryOptions queryOptions)
protected boolean
matchesSimpleAttribute(SimpleAttribute<O,A> attribute, O object, QueryOptions queryOptions)
static boolean
matchesValue(CharSequence aValue, CharSequence bValue, QueryOptions queryOptions)
String
toString()
-
Methods inherited from class com.googlecode.cqengine.query.simple.SimpleQuery
asLiteral, asLiteral, getAttribute, getAttributeName, getAttributeType, hashCode, matches
-
-
-
-
Constructor Detail
-
StringStartsWith
public StringStartsWith(Attribute<O,A> attribute, A value)
Creates a newSimpleQuery
initialized to make assertions on values of the specified attribute- Parameters:
attribute
- The attribute on which the assertion is to be made
-
-
Method Detail
-
getValue
public A getValue()
-
matchesSimpleAttribute
protected boolean matchesSimpleAttribute(SimpleAttribute<O,A> attribute, O object, QueryOptions queryOptions)
- Specified by:
matchesSimpleAttribute
in classSimpleQuery<O,A extends CharSequence>
-
matchesNonSimpleAttribute
protected boolean matchesNonSimpleAttribute(Attribute<O,A> attribute, O object, QueryOptions queryOptions)
- Specified by:
matchesNonSimpleAttribute
in classSimpleQuery<O,A extends CharSequence>
-
matchesValue
public static boolean matchesValue(CharSequence aValue, CharSequence bValue, QueryOptions queryOptions)
-
calcHashCode
protected int calcHashCode()
- Specified by:
calcHashCode
in classSimpleQuery<O,A extends CharSequence>
-
-