Package com.jackmeng.stl
Interface stl_type.type_Numerical<E extends java.lang.Number>
- All Superinterfaces:
java.lang.Comparable<E>
,stl_type<E>
- All Known Implementing Classes:
UInt_t
public static interface stl_type.type_Numerical<E extends java.lang.Number> extends stl_type<E>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jackmeng.stl.stl_type
stl_type.type_Numerical<E extends java.lang.Number>
-
Method Summary
Modifier and Type Method Description E
and(E e)
Generic Bitwise AND.E
divide(E e)
Generic Numerical Division.E
left(E e)
Generic Bitwise Left Shift.E
minus(E e)
Generic Numerical Subtraction.E
mod(E e)
Generic Numerical Modulo (Remainder Division).E
not()
Generic Bitwise Negation.E
or(E e)
Generic Bitwise OR.E
plus(E e)
Generic Numerical Addition.E
right(E e)
Generic Bitwise Right Shift.E
right_2(E e)
Generic Bitwise Right Shift.E
times(E e)
Generic Numerical Multiplication.E
xor(E e)
Generic Bitwise XOR.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
plus
Generic Numerical Addition. Where it is "this + (param.value)"- Parameters:
e
- The other type to be added.- Returns:
- A new object instance that has the value of the final operation.
-
minus
Generic Numerical Subtraction. Where it is "this - (param.value)"- Parameters:
e
- The other type to be subtracted.- Returns:
- A new object instance that has the value of the final operation.
-
times
Generic Numerical Multiplication. Where it is "this * (param.value)"- Parameters:
e
- The other type to be multiplied by.- Returns:
- A new object instance that has the value of the final operation.
-
divide
Generic Numerical Division. Where it is "this / (param.value)"- Parameters:
e
- The other type to be divided by.- Returns:
- A new object instance that has the value of the final operation.
-
mod
Generic Numerical Modulo (Remainder Division). Where it is "this % (param.value)"- Parameters:
e
- The other type to be modded.- Returns:
- A new object instance that has the value of the final operation.
-
not
E not()Generic Bitwise Negation. Where it is "~this"- Returns:
- A new object instance that has the value of the final operation.
-
or
Generic Bitwise OR. Where it is "this | (param.value)"- Parameters:
e
- The other type to be bitwise ORed.- Returns:
- A new object instance that has the value of the final operation.
-
xor
Generic Bitwise XOR. Where it is "this ^ (param.value)"- Parameters:
e
- The other type to be bitwise XORed.- Returns:
- A new object instance that has the value of the final operation.
-
and
Generic Bitwise AND. Where it is "this & (param.value)"- Parameters:
e
- The other type to be bitwise ANDed.- Returns:
- A new object instance that has the value of the final operation.
-
left
Generic Bitwise Left Shift. Where it is "this << (param.value)"- Parameters:
e
- The other type to left shift by.- Returns:
- A new object instance that has the value of the final operation.
-
right
Generic Bitwise Right Shift. Where it is "this >> (param.value)"- Parameters:
e
- The other type to right shift by.- Returns:
- A new object instance that has the value of the final operation.
-
right_2
Generic Bitwise Right Shift. Where it is "this >>> (param.value)" with zero fill. Discarding bits and fill from the left with zeroes.- Parameters:
e
- The other type to right shift by.- Returns:
- A new object instance that has the value of the final operation.
-