1    /*
2     * Copyright 2009 :torweg free software group
3     *
4     * This program is free software: you can redistribute it and/or modify
5     * it under the terms of the GNU General Public License as published by
6     * the Free Software Foundation, either version 3 of the License, or
7     * (at your option) any later version.
8     * 
9     * This program is distributed in the hope that it will be useful,
10    * but WITHOUT ANY WARRANTY; without even the implied warranty of
11    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    * GNU General Public License for more details.
13    * 
14    * You should have received a copy of the GNU General Public License
15    * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16    *
17    */
18   package org.torweg.pulse.component.statistics.util;
19   
20   import org.torweg.pulse.component.statistics.model.AbstractRegexVersioned;
21   import org.torweg.pulse.component.statistics.model.aggregation.AbstractRegexVersionedCounterAggregation;
22   
23   /**
24    * An actual implementation of {@code IRowDataBuilder} as required for
25    * displaying {@code AbstractRegexVersionedCounterAggregation}s within the
26    * rows of the {@code ResultIHasDurationMatrix}.
27    * 
28    * @param <T>
29    *            the actual implementation of the
30    *            {@code AbstractRegexVersionedCounterAggregation<? extends AbstractRegexVersioned, ?>}
31    * 
32    * @author Daniel Dietz
33    * @version $Revision: 1562 $
34    */
35   public final class AbstractRegexVersionedCounterAggregationRowDataBuilder<T extends AbstractRegexVersionedCounterAggregation<? extends AbstractRegexVersioned, ?>>
36           implements
37           IRowDataBuilder<T, AbstractRegexVersionedCounterAggregationRowData<T>> {
38   
39       /**
40        * The serialVersionUID.
41        */
42       private static final long serialVersionUID = 3229407307774727028L;
43   
44       /**
45        * Creates a {@code AbstractRegexVersionedCounterAggregationRowData}
46        * from the given {@code IHasDuration}.
47        * 
48        * @param dataObject
49        *            the {@code &lt;T&gt;}
50        * 
51        * @return a new
52        *         {@code AbstractRegexVersionedCounterAggregationRowData}
53        * 
54        * @see org.torweg.pulse.component.statistics.util.IRowDataBuilder#create
55        *      (org.torweg.pulse.util.time.IHasDuration)
56        */
57       public AbstractRegexVersionedCounterAggregationRowData<T> create(
58               final T dataObject) {
59           return new AbstractRegexVersionedCounterAggregationRowData<T>(
60                   dataObject);
61       }
62   }
63