コード例 #1
0
 public static Event getDefaultEvent() {
   Event event = new Event();
   event.id = 555L;
   event.slug = BaseX.encode(event.id, new Date());
   return event;
 }
コード例 #2
0
 public static String toSlug(Event event) {
   return BaseX.encode(event.id, event.dateCreated);
 }