// Path: src/paprika/entities/Entity.java
// public abstract class Entity {
//     protected String name;
//     protected List<Metric> metrics = new ArrayList<>();
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public List<Metric> getMetrics() {
//         return metrics;
//     }
// 
//     public void setMetrics(List<Metric> metrics) {
//         this.metrics = metrics;
//     }
// 
//     public void addMetric(UnaryMetric unaryMetric){
//         this.metrics.add(unaryMetric);
//     }
// 
//     @Override
//     public String toString() {
//         return name;
//     }
// 
// 
// }


import paprika.entities.Entity;
/*
 * Paprika - Detection of code smells in Android application
 *     Copyright (C)  2016  Geoffrey Hecht - INRIA - UQAM - University of Lille
 *
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU Affero General Public License as
 *     published by the Free Software Foundation, either version 3 of the
 *     License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU Affero General Public License for more details.
 *
 *     You should have received a copy of the GNU Affero General Public License
 *     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package paprika.metrics;

/**
 * Created by Geoffrey Hecht on 21/05/14.
 */
public class DumbUnaryMetric<E> extends UnaryMetric<E> {
    private String description;

    private DumbUnaryMetric(Entity entity, E value, String description) {
        this.value = value;
        this.entity = entity;
        this.description = description;
    }

// Path: src/paprika/entities/Entity.java
// public abstract class Entity {
//     protected String name;
//     protected List<Metric> metrics = new ArrayList<>();
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public List<Metric> getMetrics() {
//         return metrics;
//     }
// 
//     public void setMetrics(List<Metric> metrics) {
//         this.metrics = metrics;
//     }
// 
//     public void addMetric(UnaryMetric unaryMetric){
//         this.metrics.add(unaryMetric);
//     }
// 
//     @Override
//     public String toString() {
//         return name;
//     }
// 
// 
// }


// Path: src/paprika/metrics/DumbUnaryMetric.java
import paprika.entities.Entity;

/*
 * Paprika - Detection of code smells in Android application
 *     Copyright (C)  2016  Geoffrey Hecht - INRIA - UQAM - University of Lille
 *
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU Affero General Public License as
 *     published by the Free Software Foundation, either version 3 of the
 *     License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU Affero General Public License for more details.
 *
 *     You should have received a copy of the GNU Affero General Public License
 *     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package paprika.metrics;

/**
 * Created by Geoffrey Hecht on 21/05/14.
 */
public class DumbUnaryMetric<E> extends UnaryMetric<E> {
    private String description;

    private DumbUnaryMetric(Entity entity, E value, String description) {
        this.value = value;
        this.entity = entity;
        this.description = description;
    }

    public static <E> DumbUnaryMetric<E> createDumbMetric(Entity entity, E value, String description) {