/[classpath]/classpath/java/beans/Beans.java
ViewVC logotype

Diff of /classpath/java/beans/Beans.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9.2.5 by gnu_andrew, Tue Aug 2 20:12:16 2005 UTC revision 1.9.2.6 by gnu_andrew, Sun Oct 16 17:12:06 2005 UTC
# Line 295  public class Beans Line 295  public class Beans
295      * @return the Bean as a new view, or if the operation      * @return the Bean as a new view, or if the operation
296      *         could not be performed, the Bean itself.      *         could not be performed, the Bean itself.
297      */      */
298     public static Object getInstanceOf(Object bean, Class newClass)     public static Object getInstanceOf(Object bean, Class<?> newClass)
299     {     {
300          return bean;          return bean;
301     }     }
# Line 314  public class Beans Line 314  public class Beans
314      * @return whether the Bean can be cast to the class type      * @return whether the Bean can be cast to the class type
315      *         in question.      *         in question.
316      */      */
317     public static boolean isInstanceOf(Object bean, Class newBeanClass)     public static boolean isInstanceOf(Object bean, Class<?> newBeanClass)
318     {     {
319         return newBeanClass.isInstance(bean);         return newBeanClass.isInstance(bean);
320     }     }

Legend:
Removed from v.1.9.2.5  
changed lines
  Added in v.1.9.2.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26