code: public PlainTime getEnd(PlainTime context) {
  
          PlainTime compare = (
              (context.getHour() == 24)
              ? PlainTime.midnightAtStartOfDay()
              : context);
  
          for (PlainTime key : this.codeMap.keySet()) {
              if (compare.isBefore(key)) {
                  return key;
              }
          }
  
          return this.codeMap.firstKey();
  
      }
docs: /*[deutsch]
  <p>Ermittelt das Ende des Tagesabschnitts, der die angegebene Uhrzeit enth&auml;lt. </p>
  
  @param   context     the clock time a day period is searched for
  @return  end of day period around given clock time, exclusive
  @see     #getStart(PlainTime)
  @since   3.13/4.10