com.epam.jdi.light.elements.complex.table.CacheAll Maven / Gradle / Ivy
package com.epam.jdi.light.elements.complex.table;
import com.epam.jdi.tools.CacheValue;
import com.epam.jdi.tools.func.JFunc;
/**
* Created by Roman Iovlev on 26.09.2019
* Email: [email protected]; Skype: roman.iovlev
*/
public class CacheAll extends CacheValue {
public CacheAll() { }
public CacheAll(JFunc getRule) { setRule(getRule); }
private boolean gotAll = false;
protected boolean isGotAll() {
if (!hasValue())
gotAll = false;
return gotAll;
}
public void gotAll() { gotAll = true; }
@Override
public void clear() { super.clear(); gotAll = false; }
}