View Javadoc

1   /*
2    * Copyright (c) 2001-2003 The XDoclet team
3    * All rights reserved.
4    */
5   package xjavadoc;
6   
7   /***
8    * Base class for Type.
9    *
10   * @author    Aslak Hellesøy
11   * @created   25. mars 2003
12   * @version   Revision: 1.0 $
13   */
14  abstract class AbstractType implements Type
15  {
16  	public boolean equals( Object o )
17  	{
18  		if( ( o instanceof Type ) )
19  		{
20  			Type other = ( Type ) o;
21  			boolean typeEqual = getType().equals( other.getType() );
22  			boolean dimensionEqual = getDimension() == other.getDimension();
23  
24  			return typeEqual && dimensionEqual;
25  		}
26  		return false;
27  	}
28  }