
org.microemu.log.LoggerDataWrapper Maven / Gradle / Ivy
/**
* MicroEmulator
* Copyright (C) 2001-2007 Bartek Teodorczyk
* Copyright (C) 2006-2007 Vlad Skarzhevskyy
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* @version $Id: LoggerDataWrapper.java 962 2007-02-19 00:48:49Z vlads $
*/
package org.microemu.log;
/**
* @author vlads
*
* Convinient method to format debug data
*
*/
public class LoggerDataWrapper {
private String text;
public LoggerDataWrapper(boolean v1) {
this.text = String.valueOf(v1);
}
public LoggerDataWrapper(long v1) {
this.text = String.valueOf(v1);
}
public LoggerDataWrapper(Object v1) {
this.text = String.valueOf(v1);
}
public LoggerDataWrapper(long v1, long v2) {
this.text = String.valueOf(v1) + " " + String.valueOf(v2);
}
public LoggerDataWrapper(String v1, String v2) {
this.text = v1 + " " + v2;
}
public String toString() {
return this.text;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy