@Test(expected = IllegalArgumentException.class) public void shouldThrowAnExceptionWhenListenerIsNull() { swipe.setListener(null); }
public void setListener(SwipeListener swipeListener) { checkNotNull(swipeListener, "swipeListener == null"); this.swipeListener = swipeListener; }
Swipe { public void setListener(SwipeListener swipeListener) { checkNotNull(swipeListener, "swipeListener == null"); this.swipeListener = swipeListener; } }
Swipe { public void setListener(SwipeListener swipeListener) { checkNotNull(swipeListener, "swipeListener == null"); this.swipeListener = swipeListener; } Swipe();  Swipe(int swipingThreshold, int swipedThreshold); }
Swipe { public void setListener(SwipeListener swipeListener) { checkNotNull(swipeListener, "swipeListener == null"); this.swipeListener = swipeListener; } Swipe();  Swipe(int swipingThreshold, int swipedThreshold); void setListener(SwipeListener swipeListener); Observable<SwipeEvent> observe(); boolean dispatchTouchEvent(final MotionEvent event); int getSwipingThreshold(); int getSwipedThreshold(); }
Swipe { public void setListener(SwipeListener swipeListener) { checkNotNull(swipeListener, "swipeListener == null"); this.swipeListener = swipeListener; } Swipe();  Swipe(int swipingThreshold, int swipedThreshold); void setListener(SwipeListener swipeListener); Observable<SwipeEvent> observe(); boolean dispatchTouchEvent(final MotionEvent event); int getSwipingThreshold(); int getSwipedThreshold(); final static int DEFAULT_SWIPING_THRESHOLD; final static int DEFAULT_SWIPED_THRESHOLD; }