Package org.goda.chronic.repeaters

Source Code of org.goda.chronic.repeaters.IntegerRepeaterDayPortion

package org.goda.chronic.repeaters;

import org.goda.chronic.utils.Range;

public class IntegerRepeaterDayPortion extends RepeaterDayPortion<Integer> {
  public IntegerRepeaterDayPortion(Integer type) {
    super(type);
  }

  @Override
  protected Range createRange(Integer type) {
    Range range = new Range(type.intValue() * 60 * 60, (type.intValue() + 12) * 60 * 60);
    return range;
  }

  @Override
  protected int _getWidth(Range range) {
    int width = (12 * 60 * 60);
    return width;
  }
}
TOP

Related Classes of org.goda.chronic.repeaters.IntegerRepeaterDayPortion

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.