Package com.github.dreamhead.moco.mount

Examples of com.github.dreamhead.moco.mount.MountPredicate


        return new MountTo(checkNotNullOrEmpty(target, "Target should not be null"));
    }

    public static MountPredicate include(final String wildcard) {
        checkNotNullOrEmpty(wildcard, "Wildcard should not be null");
        return new MountPredicate() {
            @Override
            public boolean apply(String filename) {
                return wildcardMatch(filename, wildcard);
            }
        };
View Full Code Here


        return not(include(checkNotNullOrEmpty(wildcard, "Wildcard should not be null")));
    }

    private static MountPredicate not(final MountPredicate predicate) {
        checkNotNull(predicate);
        return new MountPredicate() {
            @Override
            public boolean apply(String filename) {
                return !predicate.apply(filename);
            }
        };
View Full Code Here

TOP

Related Classes of com.github.dreamhead.moco.mount.MountPredicate

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.