class ExpiryDateEditText extends StripeEditText {

    @Nullable
    @Size(2)
    public int[] getValidDateFields() {
        if (!mIsDateValid) {
            return null;
        }

        int [] monthYearPair = new int[2];
        String rawNumericInput = getText().toString().replaceAll("/", "");
        String[] dateFields = DateUtils.separateDateStringParts(rawNumericInput);

        try {
            monthYearPair[0] = Integer.parseInt(dateFields[0]);
            monthYearPair[1] = DateUtils.convertTwoDigitYearToFour(Integer.parseInt(dateFields[1]));
        } catch (NumberFormatException numEx) {
            // Given that the date should already be valid when getting to this method, we should
            // not his this exception. Returning null to indicate error if we do.
            return null;
        }

        return monthYearPair;
    }

    public  ExpiryDateEditText(Context context);
    public  ExpiryDateEditText(Context context, AttributeSet attrs);
    public  ExpiryDateEditText(Context context, AttributeSet attrs, int defStyleAttr);

}