/* * Copyright (c) 2009-2011. Created by serso aka se.solovyev. * For more information, please, contact se.solovyev@gmail.com * or visit http://se.solovyev.org */ package org.solovyev.common; import org.jetbrains.annotations.NotNull; import org.solovyev.common.utils.Formatter; import org.solovyev.common.utils.Mapper; import org.solovyev.common.utils.Parser; /** * User: serso * Date: 9/26/11 * Time: 10:45 PM */ public class GenericIntervalMapper extends AbstractIntervalMapper { @NotNull private final Mapper mapper; public GenericIntervalMapper(@NotNull Mapper mapper) { this.mapper = mapper; } @NotNull @Override protected Formatter getFormatter() { return mapper; } @NotNull @Override protected Parser getParser() { return mapper; } }