Class UnsignedInteger64

java.lang.Object
com.sshtools.common.util.UnsignedInteger64

public class UnsignedInteger64 extends Object
This class provides a 64bit unsigned integer.
Author:
Lee David Painter
  • Field Details

  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object o)
      Compares this unsigned integer to an object.
      Overrides:
      equals in class Object
      Parameters:
      o -
      Returns:
    • bigIntValue

      public BigInteger bigIntValue()
      Return a BigInteger value of the unsigned integer.
      Returns:
    • longValue

      public long longValue()
      Return a long value of the unsigned integer.
      Returns:
    • toString

      public String toString()
      Return a String representation of the unsigned integer
      Overrides:
      toString in class Object
      Returns:
    • hashCode

      public int hashCode()
      Return the objects hash code.
      Overrides:
      hashCode in class Object
      Returns:
    • add

      Add an unsigned integer to another unsigned integer.
      Parameters:
      x -
      y -
      Returns:
    • add

      public static UnsignedInteger64 add(UnsignedInteger64 x, int y)
      Add an unsigned integer to an int.
      Parameters:
      x -
      y -
      Returns:
    • toByteArray

      public byte[] toByteArray()
      Returns a byte array encoded with the unsigned integer.
      Returns: