@Test public void testWrongLiteralCalendar() { assertNull(RelationDate.getCalendar(new LiteralImpl("qwqe"))); }
public static Calendar getCalendar(Literal dateLiteral) { Calendar cal = Calendar.getInstance(); Date date = getDate(dateLiteral); if (date == null) { return null; } cal.setTime(date); return cal; }
RelationDate { public static Calendar getCalendar(Literal dateLiteral) { Calendar cal = Calendar.getInstance(); Date date = getDate(dateLiteral); if (date == null) { return null; } cal.setTime(date); return cal; } }
RelationDate { public static Calendar getCalendar(Literal dateLiteral) { Calendar cal = Calendar.getInstance(); Date date = getDate(dateLiteral); if (date == null) { return null; } cal.setTime(date); return cal; } private  RelationDate(); }
RelationDate { public static Calendar getCalendar(Literal dateLiteral) { Calendar cal = Calendar.getInstance(); Date date = getDate(dateLiteral); if (date == null) { return null; } cal.setTime(date); return cal; } private  RelationDate(); static Literal getLiteralDate(Date date); static Literal getLiteralDate(Calendar cal); static Date getDate(Literal dateLiteral); static Calendar getCalendar(Literal dateLiteral); }
RelationDate { public static Calendar getCalendar(Literal dateLiteral) { Calendar cal = Calendar.getInstance(); Date date = getDate(dateLiteral); if (date == null) { return null; } cal.setTime(date); return cal; } private  RelationDate(); static Literal getLiteralDate(Date date); static Literal getLiteralDate(Calendar cal); static Date getDate(Literal dateLiteral); static Calendar getCalendar(Literal dateLiteral);  }