package com.tinkerrocks.process.traversal;

import java.util.function.BiPredicate;

/**
 * Created by ashishn on 9/3/15.
 */
public enum StringContains implements BiPredicate<String, String> {
    subString {
        @Override
        public boolean test(final String first, final String second) {
            return first.toLowerCase().contains(second.toLowerCase());
        }
    },
    notSubString {
        @Override
        public boolean test(String o, String s) {
            return !subString.test(o, s);
        }
    };

    @Override
    public abstract boolean test(String o, String s);

    @Override
    public BiPredicate<String, String> negate() {
        return this.equals(subString) ? subString : notSubString;
    }

}

@@ -80,16 +80,79 @@
 te;%0A%0A/**
+ %3Cp%3E%0A *  Class for stringContains Hascontainer support.%0A * %3C/p%3E
 %0A * Crea

add jdoc