
com.moon.runner.core.GetNot Maven / Gradle / Ivy
package com.moon.runner.core;
/**
* @author moonsky
*/
class GetNot implements AsGetter {
final AsRunner valuer;
GetNot(AsRunner valuer) { this.valuer = valuer; }
@Override
public Object run(Object data) { return !((Boolean) valuer.run(data)).booleanValue(); }
/**
* 这个方法在这儿不能保证数据强正确性
*
* @param o the input argument
* @return {@code true} if the input argument matches the predicate,
* otherwise {@code false}
*/
@Override
public boolean test(Object o) { return true; }
@Override
public String toString() { return "!" + valuer.toString(); }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy