@Test(expected = IllegalArgumentException.class) public void testSetNullTimeTypeException() { mTravelTimePanel.setTimeType(null); }
public TravelTimePanel setTimeType(final RouteOptions.TimeType type) { if (type == null) { throw new IllegalArgumentException( getContext().getString(R.string.msdkui_exception_time_type_null)); } if (mOnTimeChangedListener != null && mTimeType != null && !mTimeType.equals(type)) { mOnTimeChangedListener.onTimeChanged(getTime(), type); } mTimeType = type; displayTimeTypeOnUi(); return this; }
TravelTimePanel extends RelativeLayout implements TravelTimePicker.OnTimePickedListener { public TravelTimePanel setTimeType(final RouteOptions.TimeType type) { if (type == null) { throw new IllegalArgumentException( getContext().getString(R.string.msdkui_exception_time_type_null)); } if (mOnTimeChangedListener != null && mTimeType != null && !mTimeType.equals(type)) { mOnTimeChangedListener.onTimeChanged(getTime(), type); } mTimeType = type; displayTimeTypeOnUi(); return this; } }
TravelTimePanel extends RelativeLayout implements TravelTimePicker.OnTimePickedListener { public TravelTimePanel setTimeType(final RouteOptions.TimeType type) { if (type == null) { throw new IllegalArgumentException( getContext().getString(R.string.msdkui_exception_time_type_null)); } if (mOnTimeChangedListener != null && mTimeType != null && !mTimeType.equals(type)) { mOnTimeChangedListener.onTimeChanged(getTime(), type); } mTimeType = type; displayTimeTypeOnUi(); return this; } TravelTimePanel(final Context context);  TravelTimePanel(final Context context, final AttributeSet attrs);  TravelTimePanel(final Context context, final AttributeSet attrs, final int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  TravelTimePanel(final Context context, final AttributeSet attrs, final int defStyleAttr,
            final int defStyleRes); }
TravelTimePanel extends RelativeLayout implements TravelTimePicker.OnTimePickedListener { public TravelTimePanel setTimeType(final RouteOptions.TimeType type) { if (type == null) { throw new IllegalArgumentException( getContext().getString(R.string.msdkui_exception_time_type_null)); } if (mOnTimeChangedListener != null && mTimeType != null && !mTimeType.equals(type)) { mOnTimeChangedListener.onTimeChanged(getTime(), type); } mTimeType = type; displayTimeTypeOnUi(); return this; } TravelTimePanel(final Context context);  TravelTimePanel(final Context context, final AttributeSet attrs);  TravelTimePanel(final Context context, final AttributeSet attrs, final int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  TravelTimePanel(final Context context, final AttributeSet attrs, final int defStyleAttr,
            final int defStyleRes); TravelTimePicker getPicker(); Date getTime(); TravelTimePanel setTime(final Date time); RouteOptions.TimeType getTimeType(); TravelTimePanel setTimeType(final RouteOptions.TimeType type); void setOnTimeChangedListener(final OnTimeChangedListener listener); @Override void onTimePicked(final Date date, final RouteOptions.TimeType type); }
TravelTimePanel extends RelativeLayout implements TravelTimePicker.OnTimePickedListener { public TravelTimePanel setTimeType(final RouteOptions.TimeType type) { if (type == null) { throw new IllegalArgumentException( getContext().getString(R.string.msdkui_exception_time_type_null)); } if (mOnTimeChangedListener != null && mTimeType != null && !mTimeType.equals(type)) { mOnTimeChangedListener.onTimeChanged(getTime(), type); } mTimeType = type; displayTimeTypeOnUi(); return this; } TravelTimePanel(final Context context);  TravelTimePanel(final Context context, final AttributeSet attrs);  TravelTimePanel(final Context context, final AttributeSet attrs, final int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  TravelTimePanel(final Context context, final AttributeSet attrs, final int defStyleAttr,
            final int defStyleRes); TravelTimePicker getPicker(); Date getTime(); TravelTimePanel setTime(final Date time); RouteOptions.TimeType getTimeType(); TravelTimePanel setTimeType(final RouteOptions.TimeType type); void setOnTimeChangedListener(final OnTimeChangedListener listener); @Override void onTimePicked(final Date date, final RouteOptions.TimeType type);  }