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
Enclosing interface:
stl_type<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

    Methods inherited from interface com.jackmeng.stl.stl_type

    name_type
  • Method Details

    • plus

      E plus​(E e)
      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

      E minus​(E e)
      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

      E times​(E e)
      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

      E divide​(E e)
      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

      E mod​(E e)
      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

      E or​(E e)
      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

      E xor​(E e)
      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

      E and​(E e)
      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

      E left​(E e)
      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

      E right​(E e)
      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

      E right_2​(E e)
      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.