public void setParams(String params) {super.setParams(params);if (params != null) {int multiplier;if (params.endsWith("s")) {multiplier = 1;params = params.substring(0, params.length()-1);} else if (params.endsWith("m")) {multiplier = 60;params = params.substring(0, params.length()-1);} else if (params.endsWith("h")) {multiplier = 3600;params = params.substring(0, params.length()-1);} else {multiplier = 1;}waitTimeSec = Double.parseDouble(params) * multiplier;} else {throw new IllegalArgumentException("you must specify the wait time, eg: 10.0s, 4.5m, 2h");}}

public void setParams ( String params ) { super . setParams ( params ) ; if ( params != null ) { int multiplier ; if ( params . endsWith ( "s" ) ) { multiplier = 1 ; params = params . substring ( 0 , params . length ( ) - 1 ) ; } else if ( params . endsWith ( "m" ) ) { multiplier = 60 ; params = params . substring ( 0 , params . length ( ) - 1 ) ; } else if ( params . endsWith ( "h" ) ) { multiplier = 3600 ; params = params . substring ( 0 , params . length ( ) - 1 ) ; } else { multiplier = 1 ; } waitTimeSec = Double . parseDouble ( params ) * multiplier ; } else { throw new IllegalArgumentException ( "you must specify the wait time, eg: 10.0s, 4.5m, 2h" ) ; } }
public override void SetParams(string @params){base.SetParams(@params);if (@params != null){int multiplier;if (@params.EndsWith("s", StringComparison.Ordinal)){multiplier = 1;@params = @params.Substring(0, @params.Length - 1);}else if (@params.EndsWith("m", StringComparison.Ordinal)){multiplier = 60;@params = @params.Substring(0, @params.Length - 1);}else if (@params.EndsWith("h", StringComparison.Ordinal)){multiplier = 3600;@params = @params.Substring(0, @params.Length - 1);}else{multiplier = 1;}waitTimeSec = double.Parse(@params, CultureInfo.InvariantCulture) * multiplier;}else{throw new ArgumentException("you must specify the wait time, eg: 10.0s, 4.5m, 2h");}}
