GigaSpaces XAP 9.1 API

org.openspaces.core.util.numbers
Class FloatHelper

java.lang.Object
  extended by org.openspaces.core.util.numbers.FloatHelper
All Implemented Interfaces:
Comparator<Number>, NumberHelper<Float>

public class FloatHelper
extends Object
implements NumberHelper<Float>

Author:
kimchy

Constructor Summary
FloatHelper()
           
 
Method Summary
 Float add(Number lhs, Number rhs)
          Adds the two numbers (can be of any Number type) and returns the type result that the number helper handles.
 Float cast(Number n)
          Casts the give Number into the type the number helper handles.
 int compare(Number lhs, Number rhs)
           
 Float div(Number lhs, Number rhs)
          Divides the two numbers (can be of any Number type) and returns the type result that the number helper handles.
 Float MAX_VALUE()
          Returns the maximum number for the specific type the number helper handles.
 Float MIN_VALUE()
          Returns the minimum number for the specific type the number helper handles.
 Float mult(Number lhs, Number rhs)
          Multiplies the two numbers (can be of any Number type) and returns the type result that the number helper handles.
 Float ONE()
          Returns the "ONE" value for the given type.
 Float sub(Number lhs, Number rhs)
          Substracts the two numbers (can be of any Number type) and returns the type result that the number helper handles.
 Float ZERO()
          Returns the "ZERO" value for the given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

FloatHelper

public FloatHelper()
Method Detail

compare

public int compare(Number lhs,
                   Number rhs)
Specified by:
compare in interface Comparator<Number>

add

public Float add(Number lhs,
                 Number rhs)
Description copied from interface: NumberHelper
Adds the two numbers (can be of any Number type) and returns the type result that the number helper handles.

Specified by:
add in interface NumberHelper<Float>

sub

public Float sub(Number lhs,
                 Number rhs)
Description copied from interface: NumberHelper
Substracts the two numbers (can be of any Number type) and returns the type result that the number helper handles.

Specified by:
sub in interface NumberHelper<Float>

mult

public Float mult(Number lhs,
                  Number rhs)
Description copied from interface: NumberHelper
Multiplies the two numbers (can be of any Number type) and returns the type result that the number helper handles.

Specified by:
mult in interface NumberHelper<Float>

div

public Float div(Number lhs,
                 Number rhs)
Description copied from interface: NumberHelper
Divides the two numbers (can be of any Number type) and returns the type result that the number helper handles.

Specified by:
div in interface NumberHelper<Float>

MAX_VALUE

public Float MAX_VALUE()
Description copied from interface: NumberHelper
Returns the maximum number for the specific type the number helper handles.

Specified by:
MAX_VALUE in interface NumberHelper<Float>

MIN_VALUE

public Float MIN_VALUE()
Description copied from interface: NumberHelper
Returns the minimum number for the specific type the number helper handles.

Specified by:
MIN_VALUE in interface NumberHelper<Float>

ONE

public Float ONE()
Description copied from interface: NumberHelper
Returns the "ONE" value for the given type.

Specified by:
ONE in interface NumberHelper<Float>

ZERO

public Float ZERO()
Description copied from interface: NumberHelper
Returns the "ZERO" value for the given type.

Specified by:
ZERO in interface NumberHelper<Float>

cast

public Float cast(Number n)
Description copied from interface: NumberHelper
Casts the give Number into the type the number helper handles.

Specified by:
cast in interface NumberHelper<Float>

GigaSpaces XAP 9.1 API

Copyright © GigaSpaces.