EGF Engine
Release 0.1.0

org.eclipse.egf.common.helper
Class MathHelper

java.lang.Object
  extended by org.eclipse.egf.common.helper.MathHelper

public class MathHelper
extends Object

Extra mathematical functions.


Field Summary
static long DAY
           
static long HOUR
           
static long MINUTE
           
static long SECOND
           
 
Constructor Summary
MathHelper()
           
 
Method Summary
static String formatAsDuration(long duration)
           
static int multiply(int sourceValue_p, float multiplier_p)
          Multiply given integer and float value, and return result as an int.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SECOND

public static final long SECOND
See Also:
Constant Field Values

MINUTE

public static final long MINUTE
See Also:
Constant Field Values

HOUR

public static final long HOUR
See Also:
Constant Field Values

DAY

public static final long DAY
See Also:
Constant Field Values
Constructor Detail

MathHelper

public MathHelper()
Method Detail

formatAsDuration

public static String formatAsDuration(long duration)

multiply

public static int multiply(int sourceValue_p,
                           float multiplier_p)
Multiply given integer and float value, and return result as an int.

Parameters:
sourceValue_p -
multiplier_p -
Returns:

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.