| java.lang.Object org.apache.harmony.rmi.common.GetLongPropAction
GetLongPropAction | public class GetLongPropAction implements PrivilegedAction(Code) | | Action for obtaining properties holding long values.
author: Mikhail A. Markov version: $Revision: 1.1.2.3 $ |
Constructor Summary | |
public | GetLongPropAction(String propName) Constructs GetLongPropAction to read property with the given name. | public | GetLongPropAction(String propName, long defaultVal) Constructs GetLongPropAction to read property with the given name. |
Method Summary | |
public Object | run() Reads the property with the name specified in constructor and returns it
as a result; if value read is null, then default value will be returned. |
GetLongPropAction | public GetLongPropAction(String propName)(Code) | | Constructs GetLongPropAction to read property with the given name.
Parameters: propName - the name of the property to be read |
GetLongPropAction | public GetLongPropAction(String propName, long defaultVal)(Code) | | Constructs GetLongPropAction to read property with the given name.
and specified default value.
Parameters: propName - the name of the property to be read Parameters: defaultVal - default value for the property |
run | public Object run()(Code) | | Reads the property with the name specified in constructor and returns it
as a result; if value read is null, then default value will be returned.
property read or defaultValue if read property is null |
|
|