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()); }
@Override public String getName() { return resolution.getName(); }
@Override public int hashCode() { return resolution.hashCode(); }