public class BeanUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
getBeanProperty(java.lang.Object bean,
java.lang.String propertyName)
Retrieve a named bean property value.
|
static long |
getLongBeanProperty(java.lang.Object bean,
java.lang.String propertyName)
Retrieve a Long bean property value.
|
public static java.lang.Object getBeanProperty(java.lang.Object bean, java.lang.String propertyName)
bean
- The bean instancepropertyName
- The name of the property whose value to extractpublic static long getLongBeanProperty(java.lang.Object bean, java.lang.String propertyName) throws java.lang.NoSuchFieldException
bean
- The bean instancepropertyName
- The name of the property whose value to extractjava.lang.NoSuchFieldException
- If the value is null (wow)Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.