001    /*
002     * Copyright (C) 2010 Evgeny Mandrikov
003     *
004     * Sonar-IDE is free software; you can redistribute it and/or
005     * modify it under the terms of the GNU Lesser General Public
006     * License as published by the Free Software Foundation; either
007     * version 3 of the License, or (at your option) any later version.
008     *
009     * Sonar-IDE is distributed in the hope that it will be useful,
010     * but WITHOUT ANY WARRANTY; without even the implied warranty of
011     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
012     * Lesser General Public License for more details.
013     *
014     * You should have received a copy of the GNU Lesser General Public
015     * License along with Sonar-IDE; if not, write to the Free Software
016     * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02
017     */
018    
019    package org.sonar.ide.shared.coverage;
020    
021    /**
022     * @author Jérémie Lagarde
023     * @since 0.2
024     */
025    public class CoverageLine {
026    
027      private final Integer line;
028      private final String hits;
029      private final String branchHits;
030    
031      protected CoverageLine(final Integer line, final String hits, final String branchHits) {
032        super();
033        this.line = line;
034        this.hits = hits;
035        this.branchHits = branchHits;
036      }
037    
038      public Integer getLine() {
039        return line;
040      }
041    
042      public String getHits() {
043        return hits;
044      }
045    
046      public String getBranchHits() {
047        return branchHits;
048      }
049    }