public class DateValidator extends Object
| Modifier | Constructor | Description |
|---|---|---|
protected |
DateValidator(Calendar calendar) |
Used in tests to inject a custom
Calendar to stabilize dates. |
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
isValid(int month,
int year) |
Helper for determining whether a date is a valid credit card expiry date.
|
protected boolean |
isValidHelper(int month,
int year) |
public static boolean isValid(int month,
int year)
month - Two-digit monthyear - Two or four digit yearprotected boolean isValidHelper(int month,
int year)
Copyright © 2018 The Apache Software Foundation. All rights reserved.