Class LongLong

java.lang.Object
com.pnfsoftware.jeb.util.base.LongLong
All Implemented Interfaces:
Comparable<LongLong>

@Ser public class LongLong extends Object implements Comparable<LongLong>
Custom implementation of Java's longlong, a signed 128-bit integer.
  • Field Details

    • lo

      public long lo
      Low 64 bits.
    • hi

      public long hi
      High 64 bits.
  • Method Details

    • valueOf

      public static LongLong valueOf(long lo, long hi)
      Create a signed 128-bit value from its low and high 64-bit words.
      Parameters:
      lo - low 64 bits
      hi - high 64 bits
      Returns:
      a 128-bit value
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(LongLong o)
      Specified by:
      compareTo in interface Comparable<LongLong>
    • compareUnsignedTo

      public int compareUnsignedTo(LongLong o)
      Compare two values as unsigned 128-bit integers.
      Parameters:
      o - value to compare with
      Returns:
      negative, zero, or positive if this value is respectively lower, equal, or greater
    • toString

      public String toString()
      Overrides:
      toString in class Object