All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gridkit.jvmtool.hflame.GenericTerminatingStackElement Maven / Gradle / Ivy

There is a newer version: 0.23
Show newest version
package org.gridkit.jvmtool.hflame;

import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;

import org.gridkit.jvmtool.stacktrace.GenericStackElement;

public class GenericTerminatingStackElement implements GenericStackElement {

	private final String caption;
	private final Map props;
	
	public GenericTerminatingStackElement(String caption) {
		this.caption = caption;
		this.props = Collections.emptyMap();
	}
	
	public GenericTerminatingStackElement(String caption, Map props) {
		this.caption = caption;
		this.props = Collections.unmodifiableMap(new LinkedHashMap(props));
	}
	
	public Map props() {
		return props;
	}
	
	@Override
	public String toString() {
		return caption;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy