|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.core.util.numbers.ShortHelper
public class ShortHelper
Constructor Summary | |
---|---|
ShortHelper()
|
Method Summary | |
---|---|
Short |
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. |
Short |
cast(Number n)
Casts the give Number into the type the number helper handles. |
int |
compare(Number lhs,
Number rhs)
|
Short |
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. |
Short |
MAX_VALUE()
Returns the maximum number for the specific type the number helper handles. |
Short |
MIN_VALUE()
Returns the minimum number for the specific type the number helper handles. |
Short |
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. |
Short |
ONE()
Returns the "ONE" value for the given type. |
Short |
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. |
Short |
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 |
---|
public ShortHelper()
Method Detail |
---|
public int compare(Number lhs, Number rhs)
compare
in interface Comparator<Number>
public Short add(Number lhs, Number rhs)
NumberHelper
add
in interface NumberHelper<Short>
public Short sub(Number lhs, Number rhs)
NumberHelper
sub
in interface NumberHelper<Short>
public Short mult(Number lhs, Number rhs)
NumberHelper
mult
in interface NumberHelper<Short>
public Short div(Number lhs, Number rhs)
NumberHelper
div
in interface NumberHelper<Short>
public Short MAX_VALUE()
NumberHelper
MAX_VALUE
in interface NumberHelper<Short>
public Short MIN_VALUE()
NumberHelper
MIN_VALUE
in interface NumberHelper<Short>
public Short ONE()
NumberHelper
ONE
in interface NumberHelper<Short>
public Short ZERO()
NumberHelper
ZERO
in interface NumberHelper<Short>
public Short cast(Number n)
NumberHelper
Number
into the type the number helper handles.
cast
in interface NumberHelper<Short>
|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |