public class CANFilter
extends java.lang.Object
Constructor and Description |
---|
CANFilter(CANId id,
int mask)
Creates a CAN filter with the given CAN identifier and a mask.
|
Modifier and Type | Method and Description |
---|---|
CANId |
getId()
Retrieves the CAN identifier of this filter.
|
int |
getMask()
Returns the mask of this filter.
|
public CANFilter(CANId id, int mask)
id
- The CAN identifier to be used in this filter.mask
- The mask to use in this filter for the given identifier.java.lang.IllegalArgumentException
- If the length of the mask is invalid.java.lang.NullPointerException
- if id == null
.CANId