blob: 53f3d026817377d45f39f37b5062f07f3855e8a1 [file] [log] [blame]
package org.apache.felix.dm.lambda.callbacks;
import java.util.Dictionary;
import java.util.Objects;
/**
* Represents a callback(Dictionary) on an Object instance.
*
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
*/
@FunctionalInterface
public interface InstanceCbDictionary {
/**
* Handles the given argument.
* @param conf the properties
*/
void accept(Dictionary<String, Object> conf);
default InstanceCbDictionary andThen(InstanceCbDictionary after) {
Objects.requireNonNull(after);
return (Dictionary<String, Object> conf) -> {
accept(conf);
after.accept(conf);
};
}
}