collections.getclass
Class Test

java.lang.Object
  extended by collections.getclass.Test

public class Test
extends java.lang.Object

Demonstrates that using instanceof in a class's equals method can cause problems.

Author:
Thomas Rowland

Constructor Summary
Test()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Test

public Test()
Method Detail

main

public static void main(java.lang.String[] args)