package be.jeffcheasey88.peeratcode.parser.java.operation; import java.util.function.Function; import be.jeffcheasey88.peeratcode.parser.java.JavaElement; import be.jeffcheasey88.peeratcode.parser.java.Value; public class SynchronizedOperation extends OperationBag{ private Value value; public SynchronizedOperation(Value value){ super(); this.value = value; } public Value getValue(){ return this.value; } @Override public E find(Function finder){ if(finder.apply(value)) return (E)value; return super.find(finder); } }