747 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.ROOT);
748 format.setTimeZone(TimeZone.getTimeZone("UTC"));
749 format.setLenient(false);
750 long time = format.parse(s.trim()).getTime();
751 return System.currentTimeMillis() > time;
752
753 }
754
755 private static int countOccurrences(String value, char match) {
756 int count = 0;
757 for (char c : value.toCharArray()) {
758 if (c == match) {
759 ++count;
760 }
761 }
762 return count;
763 }
764
765 private static void info(String message, Throwable t) {
766 PlatformLogger logger = PlatformLogger.getLogger("java.util.Currency");
767 if (logger.isLoggable(PlatformLogger.INFO)) {
768 if (t != null) {
769 logger.info(message, t);
770 } else {
771 logger.info(message);
772 }
773 }
774 }
775 }
|
747 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.ROOT);
748 format.setTimeZone(TimeZone.getTimeZone("UTC"));
749 format.setLenient(false);
750 long time = format.parse(s.trim()).getTime();
751 return System.currentTimeMillis() > time;
752
753 }
754
755 private static int countOccurrences(String value, char match) {
756 int count = 0;
757 for (char c : value.toCharArray()) {
758 if (c == match) {
759 ++count;
760 }
761 }
762 return count;
763 }
764
765 private static void info(String message, Throwable t) {
766 PlatformLogger logger = PlatformLogger.getLogger("java.util.Currency");
767 if (logger.isLoggable(PlatformLogger.Level.INFO)) {
768 if (t != null) {
769 logger.info(message, t);
770 } else {
771 logger.info(message);
772 }
773 }
774 }
775 }
|