# Class: com.pnfsoftware.jeb.util.primitives.Longs

Utility methods for `long`s.

## Constructor: Longs


## Static Method: compareUnsigned
- parameter: `x`, type: `long`
- parameter: `y`, type: `long`
- return type: `int`

Description: Compare two longs as unsigned.
parameter: x: 
parameter: y: 
return: 

## Static Method: divUnsigned
- parameter: `dividend`, type: `long`
- parameter: `divisor`, type: `long`
- return type: `long`

Description: Divide two longs treated as unsigned.
parameter: dividend: 
parameter: divisor: 
return: 

## Static Method: equals
- parameter: `a`, type: `java.lang.Long`
- parameter: `b`, type: `java.lang.Long`
- return type: `boolean`

Description: Safe equality.
parameter: a: may be null
parameter: b: may be null
return: true if both a and b are null or if their long values are equal

## Static Method: equals
- parameter: `a`, type: `java.lang.Long`
- parameter: `b`, type: `long`
- return type: `boolean`

Description: Safe equality.
parameter: a: may be null
parameter: b: 
return: true if a is not null and its long value equal to b

## Static Method: equals
- parameter: `a`, type: `long`
- parameter: `b`, type: `java.lang.Long`
- return type: `boolean`

Description: Safe equality.
parameter: a: 
parameter: b: may be null
return: true if b is not null and its long value equal to a

## Static Method: formatHexCollection
- parameter: `list`, type: `java.util.Collection<java.lang.Long>`
- return type: `java.lang.String`

Description: Uses a "0x" prefix, ", " separator.
parameter: list: 
return: 

## Static Method: formatLongCollection
- parameter: `collection`, type: `java.util.Collection<java.lang.Long>`
- parameter: `radix`, type: `java.lang.Integer`
- parameter: `pfx`, type: `java.lang.String`
- parameter: `sfx`, type: `java.lang.String`
- parameter: `separator`, type: `java.lang.String`
- return type: `java.lang.String`

Description: Format a collection of longs.
parameter: collection: collection of longs
parameter: radix: optional, default=10
parameter: pfx: optional, default=none
parameter: sfx: optional, default=none
parameter: separator: optional, default=", "
return: 

## Static Method: fromInts
- parameter: `v0`, type: `int`
- parameter: `v1`, type: `int`
- return type: `long`

Description: Create a long from two ints. See [#toInts(long)](#toInts(long)) for the reverse operation.
parameter: v0: 
parameter: v1: 
return: 

## Static Method: maxUnsigned
- parameter: `x`, type: `long`
- parameter: `y`, type: `long`
- return type: `long`

Description: Retrieve the max of two longs treated as unsigned.
parameter: x: 
parameter: y: 
return: 

## Static Method: minUnsigned
- parameter: `x`, type: `long`
- parameter: `y`, type: `long`
- return type: `long`

Description: Retrieve the min of two longs treated as unsigned.
parameter: x: 
parameter: y: 
return: 

## Static Method: range
- parameter: `start`, type: `long`
- parameter: `end`, type: `long`
- parameter: `step`, type: `long`
- return type: `java.lang.Iterable<java.lang.Long>`

Description: Generate an iterable range of integers.
parameter: start: 
parameter: end: exclusive
parameter: step: increment \(can be negative, cannot be zero\)
return: 

## Static Method: range
- parameter: `start`, type: `long`
- parameter: `end`, type: `long`
- return type: `java.lang.Iterable<java.lang.Long>`

Description: Generate an incremental range of integers.
parameter: start: 
parameter: end: exclusive
return: 

## Static Method: range
- parameter: `cnt`, type: `long`
- return type: `java.lang.Iterable<java.lang.Long>`

Description: Generate an incremental range of integers from 0 to the provided count.
parameter: cnt: 
return: 

## Static Method: remUnsigned
- parameter: `dividend`, type: `long`
- parameter: `divisor`, type: `long`
- return type: `long`

Description: Get the division remainder of two longs treated as unsigned.
parameter: dividend: 
parameter: divisor: 
return: 

## Static Method: toInts
- parameter: `v`, type: `long`
- return type: `int[]`

Description: Create two ints from a long. See [#fromInts(int, int)](#fromInts(int, int)) for the reverse operation.
parameter: v: 
return: an array of two ints.

## Static Method: toUnsignedBigInteger
- parameter: `v`, type: `long`
- return type: `java.math.BigInteger`

Description: Convert a long treated as unsigned to a big integer.
parameter: v: 
return: 

## Static Method: toUnsignedString
- parameter: `value`, type: `long`
- return type: `java.lang.String`

Description: Convert a long to its unsigned decimal string representation.
parameter: value: 
return: 

