1 |
/* Insets.java -- Information about a container border. |
/* Insets.java -- Information about a container border. |
2 |
Copyright (C) 1999 Free Software Foundation, Inc. |
Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
103 |
public boolean |
public boolean |
104 |
equals(Object obj) |
equals(Object obj) |
105 |
{ |
{ |
|
if (obj == null) |
|
|
return(false); |
|
|
|
|
106 |
if (!(obj instanceof Insets)) |
if (!(obj instanceof Insets)) |
107 |
return(false); |
return(false); |
108 |
|
|
120 |
return(true); |
return(true); |
121 |
} |
} |
122 |
|
|
123 |
|
public int |
124 |
|
hashCode() |
125 |
|
{ |
126 |
|
return top + bottom + left + right; |
127 |
|
} |
128 |
|
|
129 |
/*************************************************************************/ |
/*************************************************************************/ |
130 |
|
|
131 |
/** |
/** |
161 |
} |
} |
162 |
|
|
163 |
} // class Insets |
} // class Insets |
|
|
|