コード例 #1
0
 private void calcNextCollection(Calendar lastCollected) {
   collectorNextCollection.setTime(lastCollected.getTime());
   // Remove irrelevant fields (sec, mins etc.)
   elapseCollectionFields(collectorNextCollection);
   // Add the resolution to get the next collection time
   collectorNextCollection.add(Calendar.SECOND, resolution.getSecs());
 }
コード例 #2
0
 @Override
 public String getName() {
   return resolution.getName();
 }
コード例 #3
0
 @Override
 public int hashCode() {
   return resolution.hashCode();
 }