class StringIsPrefixOf extends SimpleQuery<O, A> {

    @Override
    protected boolean matchesSimpleAttribute(SimpleAttribute<O, A> attribute, O object, QueryOptions queryOptions) {
        CharSequence attributeValue = attribute.getValue(object, queryOptions);
        //swap the order of values
        return StringStartsWith.matchesValue(value, attributeValue, queryOptions);
    }

    public  StringIsPrefixOf(Attribute<O, A> attribute, A value);

}