// Path: src/main/groovy/groovyx/gprof/MethodInfo.java
// public class MethodInfo {
// 
//     private String className, methodName;
// 
//     public MethodInfo(String className, String methodName) {
//         this.className = className;
//         this.methodName = methodName;
//     }
// 
//     public String getClassName() {
//         return className;
//     }
// 
//     public String getMethodName() {
//         return methodName;
//     }
// 
//     public String getName() {
//         return className + "." + methodName;
//     }
// 
//     @Override
//     public boolean equals(Object o) {
//         if (this == o) return true;
//         if (o == null || getClass() != o.getClass()) return false;
// 
//         MethodInfo that = (MethodInfo) o;
// 
//         if (className != null ? !className.equals(that.className) : that.className != null) return false;
//         if (methodName != null ? !methodName.equals(that.methodName) : that.methodName != null) return false;
// 
//         return true;
//     }
// 
//     @Override
//     public int hashCode() {
//         int result = className != null ? className.hashCode() : 0;
//         result = 31 * result + (methodName != null ? methodName.hashCode() : 0);
//         return result;
//     }
// 
//     @Override
//     public String toString() {
//         return "MethodInfo{" +
//                 "className='" + className + '\'' +
//                 ", methodName='" + methodName + '\'' +
//                 '}';
//     }
// 
// }
// 
// Path: src/main/groovy/groovyx/gprof/ReportElement.java
// public interface ReportElement {
// }


import groovyx.gprof.MethodInfo;
import groovyx.gprof.ReportElement;
/*
 * Copyright 2013 Masato Nagai
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package groovyx.gprof.flat;


public class FlatReportMethodElement implements ReportElement {

    private MethodInfo method;
    private long calls;
    private float timePercent;
    private long cumulativeTime;
    private long time;
    private long maxTime;
    private long minTime;
    private long selfTime;
    private long maxSelfTime;
    private long minSelfTime;

// Path: src/main/groovy/groovyx/gprof/MethodInfo.java
// public class MethodInfo {
// 
//     private String className, methodName;
// 
//     public MethodInfo(String className, String methodName) {
//         this.className = className;
//         this.methodName = methodName;
//     }
// 
//     public String getClassName() {
//         return className;
//     }
// 
//     public String getMethodName() {
//         return methodName;
//     }
// 
//     public String getName() {
//         return className + "." + methodName;
//     }
// 
//     @Override
//     public boolean equals(Object o) {
//         if (this == o) return true;
//         if (o == null || getClass() != o.getClass()) return false;
// 
//         MethodInfo that = (MethodInfo) o;
// 
//         if (className != null ? !className.equals(that.className) : that.className != null) return false;
//         if (methodName != null ? !methodName.equals(that.methodName) : that.methodName != null) return false;
// 
//         return true;
//     }
// 
//     @Override
//     public int hashCode() {
//         int result = className != null ? className.hashCode() : 0;
//         result = 31 * result + (methodName != null ? methodName.hashCode() : 0);
//         return result;
//     }
// 
//     @Override
//     public String toString() {
//         return "MethodInfo{" +
//                 "className='" + className + '\'' +
//                 ", methodName='" + methodName + '\'' +
//                 '}';
//     }
// 
// }
// 
// Path: src/main/groovy/groovyx/gprof/ReportElement.java
// public interface ReportElement {
// }


// Path: src/main/groovy/groovyx/gprof/flat/FlatReportMethodElement.java
import groovyx.gprof.MethodInfo;
import groovyx.gprof.ReportElement;

/*
 * Copyright 2013 Masato Nagai
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package groovyx.gprof.flat;


public class FlatReportMethodElement implements ReportElement {

    private MethodInfo method;
    private long calls;
    private float timePercent;
    private long cumulativeTime;
    private long time;
    private long maxTime;
    private long minTime;
    private long selfTime;
    private long maxSelfTime;
    private long minSelfTime;

    public FlatReportMethodElement(MethodInfo method) {