APISonar


com.intellij.idea.Bombed.time

> com > intellij > idea > Bombed > time
com APIs intellij APIs idea APIs Bombed APIs time APIs

Example 1
private static Date raidDate(Bombed bombed) {
    final Calendar instance = Calendar.getInstance();
    instance.set(Calendar.YEAR, bombed.year());
    instance.set(Calendar.MONTH, bombed.month());
    instance.set(Calendar.DAY_OF_MONTH, bombed.day());
    instance.set(Calendar.HOUR_OF_DAY, bombed.time());
    instance.set(Calendar.MINUTE, 0);

    return instance.getTime();
  }
Example 2
private static boolean isBombed(final Bombed bombedAnnotation) {
    if (bombedAnnotation == null) return false;
    return !IdeaTestUtil.bombExplodes(bombedAnnotation.year(),
                                      bombedAnnotation.month(),
                                      bombedAnnotation.day(),
                                      bombedAnnotation.time(),
                                      0,
                                      bombedAnnotation.user(),
                                      bombedAnnotation.description());
  }