Package ghidra.util

Class NumberUtil


  • public class NumberUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      NumberUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean equalsMaxUnsignedValue​(java.lang.Number value)
      Compare to the maximum unsigned value that the current number is holding.
      static java.lang.Number getUnsignedValue​(java.lang.Number value)
      Get the unsigned value of a number.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NumberUtil

        public NumberUtil()
    • Method Detail

      • getUnsignedValue

        public static java.lang.Number getUnsignedValue​(java.lang.Number value)
        Get the unsigned value of a number.
        Parameters:
        value - the value stored in a signed number
        Returns:
        the unsigned value of the number
      • equalsMaxUnsignedValue

        public static boolean equalsMaxUnsignedValue​(java.lang.Number value)
        Compare to the maximum unsigned value that the current number is holding.
        Parameters:
        value - the value stored in a signed number
        Returns:
        true if equal to the maximum and false otherwise