// Path: library/src/main/java/com/philliphsu/numberpadtimepicker/Preconditions.java
// static <T> T checkNotNull(T t) {
//     if (t == null) {
//         throw new NullPointerException();
//     }
//     return t;
// }


import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.ColorInt;
import android.support.annotation.IntDef;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.graphics.drawable.DrawableCompat;
import android.text.format.DateFormat;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import static com.philliphsu.numberpadtimepicker.Preconditions.checkNotNull;
            return this;
        }

        View inflate(Context context, NumberPadTimePicker root) {
            return View.inflate(context, R.layout.nptp_numberpad_time_picker, root);
        }

        @Nullable
        View getOkButton() {
            return mOkButton;
        }

        private void setOkButtonCallbacks(OkButtonCallbacks callbacks) {
            mCallbacks = callbacks;
        }

        private static void setBackground(View view, Drawable background) {
            if (Build.VERSION.SDK_INT < 16) {
                view.setBackgroundDrawable(background);
            } else {
                view.setBackground(background);
            }
        }
    }

    private static class SavedState extends BaseSavedState {
        private final INumberPadTimePicker.State mNptpState;

        SavedState(Parcelable superState, @NonNull INumberPadTimePicker.State nptpState) {
            super(superState);
// Path: library/src/main/java/com/philliphsu/numberpadtimepicker/Preconditions.java
// static <T> T checkNotNull(T t) {
//     if (t == null) {
//         throw new NullPointerException();
//     }
//     return t;
// }


// Path: library/src/main/java/com/philliphsu/numberpadtimepicker/NumberPadTimePicker.java
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.ColorInt;
import android.support.annotation.IntDef;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.graphics.drawable.DrawableCompat;
import android.text.format.DateFormat;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import static com.philliphsu.numberpadtimepicker.Preconditions.checkNotNull;

            return this;
        }

        View inflate(Context context, NumberPadTimePicker root) {
            return View.inflate(context, R.layout.nptp_numberpad_time_picker, root);
        }

        @Nullable
        View getOkButton() {
            return mOkButton;
        }

        private void setOkButtonCallbacks(OkButtonCallbacks callbacks) {
            mCallbacks = callbacks;
        }

        private static void setBackground(View view, Drawable background) {
            if (Build.VERSION.SDK_INT < 16) {
                view.setBackgroundDrawable(background);
            } else {
                view.setBackground(background);
            }
        }
    }

    private static class SavedState extends BaseSavedState {
        private final INumberPadTimePicker.State mNptpState;

        SavedState(Parcelable superState, @NonNull INumberPadTimePicker.State nptpState) {
            super(superState);
            mNptpState = checkNotNull(nptpState);