提交 9a610d52 编写于 作者: J Jesse Wilson 提交者: GitHub

Merge pull request #2177 from square/jw/2017-01-30/unused

Remove unused interface.
......@@ -41,15 +41,6 @@ public final class NetworkBehavior {
private static final int DEFAULT_VARIANCE_PERCENT = 40; // Network delay varies by ±40%.
private static final int DEFAULT_FAILURE_PERCENT = 3; // 3% of network calls will fail.
/** Applies {@link NetworkBehavior} to instances of {@code T}. */
public interface Adapter<T> {
/**
* Apply {@code behavior} to {@code value} so that it exhibits the configured network behavior
* traits when interacted with.
*/
T applyBehavior(NetworkBehavior behavior, T value);
}
/** Create an instance with default behavior. */
public static NetworkBehavior create() {
return new NetworkBehavior(new Random());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册