KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > transparency > SuperClassWithNoFields


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tctest.transparency;
5
6 public class SuperClassWithNoFields {
7
8   public synchronized void method1() {
9     System.err.println(this);
10   }
11
12   public String JavaDoc toString() {
13     return "SuperClassWithNoFields";
14   }
15
16   public boolean equals(Object JavaDoc o) {
17     if (this == o) return true;
18     if (o instanceof SuperClassWithNoFields) { return true; }
19     return false;
20   }
21 }
22
Popular Tags