1 |
/* java.lang.Object - The universal superclass in Java |
/* java.lang.Object - The universal superclass in Java |
2 |
Copyright (C) 1998, 1999, 2001, 2002, 2004 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004 |
3 |
|
Free Software Foundation, Inc. |
4 |
|
|
5 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
6 |
|
|
39 |
|
|
40 |
package java.lang; |
package java.lang; |
41 |
|
|
|
import gnu.classpath.Configuration; |
|
42 |
|
|
43 |
/** |
/** |
44 |
* Object is the ultimate superclass of every class |
* Object is the ultimate superclass of every class |
56 |
* of <code>clone</code> which is accessible. |
* of <code>clone</code> which is accessible. |
57 |
* |
* |
58 |
* @author John Keiser |
* @author John Keiser |
59 |
* @author Eric Blake <ebb9@email.byu.edu> |
* @author Eric Blake (ebb9@email.byu.edu) |
60 |
* @since 1.0 |
* @author Tom Tromey (tromey@cygnus.com) |
61 |
*/ |
*/ |
62 |
public class Object |
public class Object |
63 |
{ |
{ |
125 |
* |
* |
126 |
* <p>The default implementation returns <code>this == o</code>. |
* <p>The default implementation returns <code>this == o</code>. |
127 |
* |
* |
128 |
* @param o the Object to compare to |
* @param obj the Object to compare to |
129 |
* @return whether this Object is semantically equal to another |
* @return whether this Object is semantically equal to another |
130 |
* @see #hashCode() |
* @see #hashCode() |
131 |
*/ |
*/ |
132 |
public boolean equals(Object o) |
public boolean equals(Object obj) |
133 |
{ |
{ |
134 |
return this == o; |
return this == obj; |
135 |
} |
} |
136 |
|
|
137 |
/** |
/** |