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

org.mvnsearch.boot.xtermjs.commands.CommandsSupport Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
package org.mvnsearch.boot.xtermjs.commands;

import java.util.Collection;

/**
 * Commands support
 *
 * @author linux_china
 */
public interface CommandsSupport {

	default String linesToString(Collection lines) {
		return String.join("\n", lines);
	}

	default String formatClassName(String classFullName) {
		if (classFullName.contains("java.lang.")) {
			return classFullName.replaceAll("java.lang.([A-Z]\\w*)", "$1");
		}
		else {
			return classFullName;
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy