1 /**
2 * MicroEmulator
3 * Copyright (C) 2001-2007 Bartek Teodorczyk <barteo@barteo.net>
4 * Copyright (C) 2006-2007 Vlad Skarzhevskyy
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 * @version $Id: LoggerDataWrapper.java 962 2007-02-19 00:48:49Z vlads $
21 */
22 package org.microemu.log;
23
24 /**
25 * @author vlads
26 *
27 * Convinient method to format debug data
28 *
29 */
30 public class LoggerDataWrapper {
31
32 private String text;
33
34 public LoggerDataWrapper(boolean v1) {
35 this.text = String.valueOf(v1);
36 }
37
38 public LoggerDataWrapper(long v1) {
39 this.text = String.valueOf(v1);
40 }
41
42 public LoggerDataWrapper(Object v1) {
43 this.text = String.valueOf(v1);
44 }
45
46 public LoggerDataWrapper(long v1, long v2) {
47 this.text = String.valueOf(v1) + " " + String.valueOf(v2);
48 }
49
50 public LoggerDataWrapper(String v1, String v2) {
51 this.text = v1 + " " + v2;
52 }
53
54 public String toString() {
55 return this.text;
56 }
57 }