@@ -0,0 +1,2499 @@
+/**%0A *%0A * Copyright (c) 2006-2017, Speedment, Inc. All Rights Reserved.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22); You may not%0A * use this file except in compliance with the License. You may obtain a copy of%0A * the License at:%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS, WITHOUT%0A * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the%0A * License for the specific language governing permissions and limitations under%0A * the License.%0A */%0Apackage com.speedment.runtime.field.trait;%0A%0Aimport com.speedment.runtime.field.Field;%0Aimport java.util.function.Predicate;%0A%0A/**%0A * A representation of an Entity field that is of boolean type%0A *%0A * @param %3CENTITY%3E the entity type%0A *%0A * @author Per Minborg%0A * @since 3.0.17%0A */%0Apublic interface HasBooleanOperators%3CENTITY%3E extends Field%3CENTITY%3E %7B%0A%0A    /**%0A     * Returns a %7B@link java.util.function.Predicate%7D that will evaluate to%0A     * %7B@code true%7D, if and only if this Field is %3Cem%3Eequal%3C/em%3E to the given%0A     * value.%0A     *%0A     * @param value to compare%0A     * @return a Predicate that will evaluate to %7B@code true%7D, if and only if%0A     * this Field is %3Cem%3Eequal%3C/em%3E to the given value%0A     */%0A    Predicate%3CENTITY%3E equal(boolean value);%0A%0A    /**%0A     * Returns a %7B@link java.util.function.Predicate%7D that will evaluate to%0A     * %7B@code true%7D, if and only if this Field is %3Cem%3Enot equal%3C/em%3E to the%0A     * given value.%0A     *%0A     * @param value to compare%0A     * @return a Predicate that will evaluate to %7B@code true%7D, if and only if%0A     * this Field is %3Cem%3Enot equal%3C/em%3E to the given value%0A     */%0A    Predicate%3CENTITY%3E notEqual(boolean value);%0A%0A    /**%0A     * Returns a %7B@link java.util.function.Predicate%7D that will evaluate to%0A     * %7B@code true%7D, if and only if this Field is %3Cem%3Etrue%3C/em%3E%0A     *%0A     * @return a Predicate that will evaluate to %7B@code true%7D, if and only if%0A     * this Field is %3Cem%3Etrue%3C/em%3E.%0A     */%0A    default Predicate%3CENTITY%3E isTrue() %7B%0A        return equal(true);%0A    %7D%0A%0A    /**%0A     * Returns a %7B@link java.util.function.Predicate%7D that will evaluate to%0A     * %7B@code true%7D, if and only if this Field is %3Cem%3Efalse%3C/em%3E%0A     *%0A     * @return a Predicate that will evaluate to %7B@code true%7D, if and only if%0A     * this Field is %3Cem%3Efalse%3C/em%3E.%0A     */%0A    default Predicate%3CENTITY%3E isFalse() %7B%0A        return equal(true);%0A    %7D%0A%0A%7D%0A

Add trait HasBooleanOperators, work on #550