Class UInt_t

java.lang.Object
java.lang.Number
com.jackmeng.stl.types.UInt_t
All Implemented Interfaces:
stl_type<UInt_t>, stl_type.type_Numerical<UInt_t>, java.io.Serializable, java.lang.Comparable<UInt_t>

public final class UInt_t
extends java.lang.Number
implements stl_type.type_Numerical<UInt_t>
Represents a standard Java 32 Bitness Unsigned Integer type. This is not to be a wrapper class!!
Author:
Jack Meng
See Also:
Serialized Form
  • Field Details

    • val

      private final int val
    • ZERO

      public static final UInt_t ZERO
      ZERO = 0
    • ONE

      public static final UInt_t ONE
      ONE = 1
    • MAX_VALUE

      public static final UInt_t MAX_VALUE
      MAX_VALUE = ?
  • Constructor Details

    • UInt_t

      private UInt_t​(int v)
  • Method Details

    • make

      public static UInt_t make​(long t)
      Turn a regular long into an unsigned integer.
      Parameters:
      t - A value
      Returns:
      An UInt_t(int) object
    • compareTo

      public int compareTo​(UInt_t o)
      Specified by:
      compareTo in interface java.lang.Comparable<UInt_t>
    • equals

      public boolean equals​(java.lang.Object e)
      Overrides:
      equals in class java.lang.Object
    • intValue

      public int intValue()
      Specified by:
      intValue in class java.lang.Number
    • longValue

      public long longValue()
      Specified by:
      longValue in class java.lang.Number
    • floatValue

      public float floatValue()
      Specified by:
      floatValue in class java.lang.Number
    • doubleValue

      public double doubleValue()
      Specified by:
      doubleValue in class java.lang.Number
    • plus

      public UInt_t plus​(UInt_t e)
      Description copied from interface: stl_type.type_Numerical
      Generic Numerical Addition. Where it is "this + (param.value)"
      Specified by:
      plus in interface stl_type.type_Numerical<UInt_t>
      Parameters:
      e - The other type to be added.
      Returns:
      A new object instance that has the value of the final operation.
    • minus

      public UInt_t minus​(UInt_t e)
      Description copied from interface: stl_type.type_Numerical
      Generic Numerical Subtraction. Where it is "this - (param.value)"
      Specified by:
      minus in interface stl_type.type_Numerical<UInt_t>
      Parameters:
      e - The other type to be subtracted.
      Returns:
      A new object instance that has the value of the final operation.
    • times

      public UInt_t times​(UInt_t e)
      Description copied from interface: stl_type.type_Numerical
      Generic Numerical Multiplication. Where it is "this * (param.value)"
      Specified by:
      times in interface stl_type.type_Numerical<UInt_t>
      Parameters:
      e - The other type to be multiplied by.
      Returns:
      A new object instance that has the value of the final operation.
    • divide

      public UInt_t divide​(UInt_t e)
      Description copied from interface: stl_type.type_Numerical
      Generic Numerical Division. Where it is "this / (param.value)"
      Specified by:
      divide in interface stl_type.type_Numerical<UInt_t>
      Parameters:
      e - The other type to be divided by.
      Returns:
      A new object instance that has the value of the final operation.
    • mod

      public UInt_t mod​(UInt_t e)
      Description copied from interface: stl_type.type_Numerical
      Generic Numerical Modulo (Remainder Division). Where it is "this % (param.value)"
      Specified by:
      mod in interface stl_type.type_Numerical<UInt_t>
      Parameters:
      e - The other type to be modded.
      Returns:
      A new object instance that has the value of the final operation.
    • not

      public UInt_t not()
      Description copied from interface: stl_type.type_Numerical
      Generic Bitwise Negation. Where it is "~this"
      Specified by:
      not in interface stl_type.type_Numerical<UInt_t>
      Returns:
      A new object instance that has the value of the final operation.
    • or

      public UInt_t or​(UInt_t e)
      Description copied from interface: stl_type.type_Numerical
      Generic Bitwise OR. Where it is "this | (param.value)"
      Specified by:
      or in interface stl_type.type_Numerical<UInt_t>
      Parameters:
      e - The other type to be bitwise ORed.
      Returns:
      A new object instance that has the value of the final operation.
    • xor

      public UInt_t xor​(UInt_t e)
      Description copied from interface: stl_type.type_Numerical
      Generic Bitwise XOR. Where it is "this ^ (param.value)"
      Specified by:
      xor in interface stl_type.type_Numerical<UInt_t>
      Parameters:
      e - The other type to be bitwise XORed.
      Returns:
      A new object instance that has the value of the final operation.
    • and

      public UInt_t and​(UInt_t e)
      Description copied from interface: stl_type.type_Numerical
      Generic Bitwise AND. Where it is "this & (param.value)"
      Specified by:
      and in interface stl_type.type_Numerical<UInt_t>
      Parameters:
      e - The other type to be bitwise ANDed.
      Returns:
      A new object instance that has the value of the final operation.
    • left

      public UInt_t left​(UInt_t e)
      Description copied from interface: stl_type.type_Numerical
      Generic Bitwise Left Shift. Where it is "this << (param.value)"
      Specified by:
      left in interface stl_type.type_Numerical<UInt_t>
      Parameters:
      e - The other type to left shift by.
      Returns:
      A new object instance that has the value of the final operation.
    • right

      public UInt_t right​(UInt_t e)
      Description copied from interface: stl_type.type_Numerical
      Generic Bitwise Right Shift. Where it is "this >> (param.value)"
      Specified by:
      right in interface stl_type.type_Numerical<UInt_t>
      Parameters:
      e - The other type to right shift by.
      Returns:
      A new object instance that has the value of the final operation.
    • right_2

      public UInt_t right_2​(UInt_t e)
      Description copied from interface: stl_type.type_Numerical
      Generic Bitwise Right Shift. Where it is "this >>> (param.value)" with zero fill. Discarding bits and fill from the left with zeroes.
      Specified by:
      right_2 in interface stl_type.type_Numerical<UInt_t>
      Parameters:
      e - The other type to right shift by.
      Returns:
      A new object instance that has the value of the final operation.