Returns the value of an attribute. @param name the non-null full name of the attribute. @param defaultValue the default value of the attribute. @return the value, or defaultValue if the attribute does not exist.
(String name, long defaultValue)
| 810 | * @return the value, or defaultValue if the attribute does not exist. |
| 811 | */ |
| 812 | public long getLong(String name, long defaultValue) { |
| 813 | String value = getString(name); |
| 814 | return (value == null) ? defaultValue : Long.parseLong(value); |
| 815 | } |
| 816 | |
| 817 | |
| 818 | /** |