1 |
/* java.beans.Beans |
/* java.beans.Beans |
2 |
Copyright (C) 1998, 1999 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2004 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
189 |
* @return the Bean as a new view, or if the operation |
* @return the Bean as a new view, or if the operation |
190 |
* could not be performed, the Bean itself. |
* could not be performed, the Bean itself. |
191 |
*/ |
*/ |
192 |
public static Object getInstanceOf(Object bean, Class newClass) |
public static Object getInstanceOf(Object bean, Class<?> newClass) |
193 |
{ |
{ |
194 |
return bean; |
return bean; |
195 |
} |
} |
208 |
* @return whether the Bean can be cast to the class type |
* @return whether the Bean can be cast to the class type |
209 |
* in question. |
* in question. |
210 |
*/ |
*/ |
211 |
public static boolean isInstanceOf(Object bean, Class newBeanClass) |
public static boolean isInstanceOf(Object bean, Class<?> newBeanClass) |
212 |
{ |
{ |
213 |
return newBeanClass.isInstance(bean); |
return newBeanClass.isInstance(bean); |
214 |
} |
} |