Package org.gocha.collection

Examples of org.gocha.collection.Predicate


         * @param source Образец для сравнения
         * @return Предикат
         */
        public static Predicate<? super CharSequence> equals(CharSequence source){
            final CharSequence src = source;
            return new Predicate() {
                @Override
                public boolean validate(Object value) {
                    if( src==null && value==null )return true;
                    if( src!=null && value==null )return false;
                    if( src==null && value!=null )return false;
View Full Code Here


         * @param source Образец для сравнения
         * @return Предикат
         */
        public static Predicate<? super CharSequence> equalsIgnoreCase(CharSequence source){
            final CharSequence src = source;
            return new Predicate() {
                @Override
                public boolean validate(Object value) {
                    if( src==null && value==null )return true;
                    if( src!=null && value==null )return false;
                    if( src==null && value!=null )return false;
View Full Code Here

     */
    public static class Predicates
    {
        public static Predicate<? super CharSequence> equals(CharSequence source){
            final CharSequence src = source;
            return new Predicate() {
                @Override
                public boolean validate(Object value) {
                    if( src==null && value==null )return true;
                    if( src!=null && value==null )return false;
                    if( src==null && value!=null )return false;
View Full Code Here

            };
        }

        public static Predicate<? super CharSequence> equalsIgnoreCase(CharSequence source){
            final CharSequence src = source;
            return new Predicate() {
                @Override
                public boolean validate(Object value) {
                    if( src==null && value==null )return true;
                    if( src!=null && value==null )return false;
                    if( src==null && value!=null )return false;
View Full Code Here

TOP

Related Classes of org.gocha.collection.Predicate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.