コード例 #1
0
 public static void addLoadingTask(ILoadingTask lt) {
   try {
     loadingTaskQueue.put(lt);
   } catch (InterruptedException e) {
     LogHandler.getInstance().write(e.getMessage(), Global.class);
   }
 }
コード例 #2
0
 public static long compareTimeInSeconds(Date source, Date compare) {
   try {
     long dff = source.getTime() - compare.getTime();
     return dff / 1000;
   } catch (Exception e) {
     LogHandler.getInstance().write(e.getMessage(), Global.class);
     return 0;
   }
 }