All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arcusx.chrono.DaySequenceFormat Maven / Gradle / Ivy

The newest version!
/**
 * This software is written by arcus(x) GmbH and subject 
 * to a contract between arcus(x) and its customer.
 *
 * This software stays property of arcus(x) unless differing
 * arrangements between arcus(x) and its customer apply.
 *
 * arcus(x) GmbH
 * Bergiusstrasse 27
 * D-22765 Hamburg, Germany
 * 
 * Tel.: +49 (0)40.333 102 92  
 * http://www.arcusx.com
 * mailto:[email protected]
 */

package com.arcusx.chrono;


/**
 * Formatting and parsing of day based timespan.
 * 
 * Created 05.10.2003, 16:58:48.
 * 
 * @author conni
 * @version $Id$
 */
public abstract class DaySequenceFormat
{
	protected DaySequenceFormat()
	{
	}

	public String format(DaySequence days)
	{
		StringBuffer buf = new StringBuffer(10);
		format(days, buf);

		return buf.toString();
	}

	public abstract DaySequence parse(String s);

	public abstract void format(DaySequence month, StringBuffer buf);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy