eu.future.earth.gwt.client.ClientUiDateParser Maven / Gradle / Ivy
The newest version!
package eu.future.earth.gwt.client;
public class ClientUiDateParser {
public static boolean testParsable(String one, String two) {
char[] chars = one.toCharArray();
char[] form = two.toCharArray();
for (int i = 0; i < form.length; i++) {
if (form[i] == '-' || form[i] == '/' || form[i] == '.') {
if (form[i] != chars[i]) {
return false;
}
} else {
if (form[i] == chars[i]) {
return false;
}
}
}
return true;
}
}