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

Utility methods for `int`s

## Constructor: Integers


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

Description: Format a collection of ints.
parameter: list: collection of ints
return: the formatted hexadecimal collection

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

Description: Format a collection of ints.
parameter: collection: collection of ints
parameter: radix: optional radix, default=10
parameter: pfx: optional prefix, default=none
parameter: sfx: optional suffix, default=none
return: the formatted collection

## Static Method: formatIntegerCollection
- parameter: `collection`, type: `java.util.Collection<java.lang.Integer>`
- 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 ints.
parameter: collection: collection of ints
parameter: radix: optional, default=10
parameter: pfx: optional, default=none
parameter: sfx: optional, default=none
parameter: separator: optional separator, default=", "
return: the formatted collection

## Static Method: max
- parameter: `c`, type: `java.util.Collection<java.lang.Integer>`
- return type: `java.lang.Integer`

Description: Retrieve the greatest integer in a collection.
parameter: c: collection to scan
return: the greatest value, or null if the collection is empty

## Static Method: min
- parameter: `c`, type: `java.util.Collection<java.lang.Integer>`
- return type: `java.lang.Integer`

Description: Retrieve the smallest integer in a collection.
parameter: c: collection to scan
return: the smallest value, or null if the collection is empty

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

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

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

Description: Generate an incremental range of integers.
parameter: start: first value, inclusive
parameter: end: exclusive
return: an iterable range

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

Description: Generate an incremental range of integers from 0 to the provided count.
parameter: cnt: exclusive upper bound
return: an iterable range from 0 to `cnt`

## Static Method: safeInt
- parameter: `v`, type: `java.lang.Integer`
- return type: `int`

Description: Safe unbox an Integer to zero when null.
parameter: v: an Integer object
return: the integer value, 0 if null

## Static Method: safeInt
- parameter: `v`, type: `java.lang.Integer`
- parameter: `defaultValue`, type: `int`
- return type: `java.lang.Integer`

Description: Safe unbox an Integer to defaultValue when null.
parameter: v: an Integer object
parameter: defaultValue: default value if null
return: the integer value, defaultValue if null

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

Description: Convert an int to its unsigned decimal string representation.
parameter: value: int value
return: the unsigned decimal representation of `value`

