@Test public void testGetMinDate() { assertEquals("20011225 12:01", getMinDate("20011225 12:01", "20011226")); assertEquals("20011225 12:01", getMinDate("20011226", "20011225 12:01")); assertEquals("20011225", getMinDate("20011226 12:01", "20011225")); assertEquals("20011225", getMinDate("20011225", "20011226 12:01")); }
public static String getMinDate(String one, String two) { if (makeLong(one.length() < 14 ? one + " 00:00" : one) > makeLong(two .length() < 14 ? two + " 00:00" : two)) { return two; } else { return one; } }
MappingUtils { public static String getMinDate(String one, String two) { if (makeLong(one.length() < 14 ? one + " 00:00" : one) > makeLong(two .length() < 14 ? two + " 00:00" : two)) { return two; } else { return one; } } }
MappingUtils { public static String getMinDate(String one, String two) { if (makeLong(one.length() < 14 ? one + " 00:00" : one) > makeLong(two .length() < 14 ? two + " 00:00" : two)) { return two; } else { return one; } }  }
MappingUtils { public static String getMinDate(String one, String two) { if (makeLong(one.length() < 14 ? one + " 00:00" : one) > makeLong(two .length() < 14 ? two + " 00:00" : two)) { return two; } else { return one; } }  static String padValue(String input, int size, char pad, char justify); static String leftJust(String input, int size); static String leftJust(String input, int size, char pad); static String rightJust(String input, int size); static String rightJust(String input, int size, char pad); static String getSystemDate(); static String getSystemTime(); static String getSystemDateTime(); static String getMinValue(String one, String two); static String getMaxValue(String one, String two); static String getMinDate(String one, String two); static String getMaxDate(String one, String two); }
MappingUtils { public static String getMinDate(String one, String two) { if (makeLong(one.length() < 14 ? one + " 00:00" : one) > makeLong(two .length() < 14 ? two + " 00:00" : two)) { return two; } else { return one; } }  static String padValue(String input, int size, char pad, char justify); static String leftJust(String input, int size); static String leftJust(String input, int size, char pad); static String rightJust(String input, int size); static String rightJust(String input, int size, char pad); static String getSystemDate(); static String getSystemTime(); static String getSystemDateTime(); static String getMinValue(String one, String two); static String getMaxValue(String one, String two); static String getMinDate(String one, String two); static String getMaxDate(String one, String two);  }