ZoneOffsetTransition(LocalDateTime transition,ZoneOffset offsetBefore,ZoneOffset offsetAfter){
  Objects.requireNonNull(transition,"transition");
  Objects.requireNonNull(offsetBefore,"offsetBefore");
  Objects.requireNonNull(offsetAfter,"offsetAfter");
  if (offsetBefore.equals(offsetAfter)) {
    throw new IllegalArgumentException("Offsets must not be equal");
  }
  this.transition=transition;
  this.offsetBefore=offsetBefore;
  this.offsetAfter=offsetAfter;
}

ZoneOffsetTransition ( LocalDateTime transition , ZoneOffset offsetBefore , ZoneOffset offsetAfter ) { Objects . requireNonNull ( transition , "transition" ) ; Objects . requireNonNull ( offsetBefore , "offsetBefore" ) ; Objects . requireNonNull ( offsetAfter , "offsetAfter" ) ; if ( offsetBefore . equals ( offsetAfter ) ) { throw new IllegalArgumentException ( "Offsets must not be equal" ) ; } this . transition = transition ; this . offsetBefore = offsetBefore ; this . offsetAfter = offsetAfter ; }
creates an instance defining a transition between two offsets .
