# Class: com.pnfsoftware.jeb.core.units.code.IdRanges

A collection of var\-id ranges.

## Constructor: IdRanges


## Constructor: IdRanges
- parameter: `o`, type: `com.pnfsoftware.jeb.core.units.code.IdRanges`


## Method: add
- parameter: `var`, type: `com.pnfsoftware.jeb.core.units.code.IVariable`


## Method: add
- parameter: `var`, type: `com.pnfsoftware.jeb.core.units.code.IVariable`
- parameter: `beg`, type: `int`
- parameter: `len`, type: `int`


## Method: add
- parameter: `varid`, type: `int`
- parameter: `bitsize`, type: `int`


## Method: addAll
- parameter: `vars`, type: `java.util.Collection<? extends com.pnfsoftware.jeb.core.units.code.IVariable>`
- parameter: `exclusions`, type: `java.util.Collection<? extends com.pnfsoftware.jeb.core.units.code.IVariable>`


## Method: addAll
- parameter: `vars`, type: `java.util.Collection<? extends com.pnfsoftware.jeb.core.units.code.IVariable>`
- parameter: `exclusions`, type: `com.pnfsoftware.jeb.core.units.code.IdRanges`


## Method: addAll
- parameter: `vars`, type: `java.util.Collection<? extends com.pnfsoftware.jeb.core.units.code.IVariable>`


## Method: bsize
- return type: `int`


## Method: clear


## Method: collectBits
- parameter: `r`, type: `java.util.List<java.lang.Integer>`


## Method: collectVarIds
- parameter: `r`, type: `java.util.Collection<java.lang.Integer>`


## Method: containsVarFull
- parameter: `varid`, type: `int`
- parameter: `bitsize`, type: `int`
- return type: `boolean`


## Method: containsVarFull
- parameter: `varid`, type: `int`
- return type: `boolean`


## Method: containsVarPart
- parameter: `var`, type: `com.pnfsoftware.jeb.core.units.code.IVariable`
- return type: `boolean`


## Method: equals
- parameter: `obj`, type: `java.lang.Object`
- return type: `boolean`


## Method: getBits
- return type: `java.util.List<java.lang.Integer>`


## Method: getVarIds
- return type: `java.util.List<java.lang.Integer>`

Description: Generate a list \(modifiable copy\) containing the variable ids stored in this object. Not all variables may be accessed fully.
return: 

## Method: hasIntersection
- parameter: `other`, type: `com.pnfsoftware.jeb.core.units.code.IdRanges`
- return type: `boolean`

Description: Check if there is common range between current range and the other range.
parameter: other: other range
return: true if there is a non empty intersection

## Method: hashCode
- return type: `int`


## Method: intersection
- parameter: `other`, type: `com.pnfsoftware.jeb.core.units.code.IdRanges`
- return type: `com.pnfsoftware.jeb.core.units.code.IdRanges`

Description: Return common range between current range and the other range.
parameter: other: other range
return: intersection

## Method: isEmpty
- return type: `boolean`


## Method: remove
- parameter: `var`, type: `com.pnfsoftware.jeb.core.units.code.IVariable`


## Method: remove
- parameter: `varId`, type: `int`


## Method: size
- return type: `int`

Description: Provide the number of accessed variables.

## Method: toString
- return type: `java.lang.String`


