FileDocCategorySizeDatePackage
DeviceClass.javaAPI DocphoneME MR2 API (J2ME)2443Wed May 02 18:00:30 BST 2007javax.bluetooth

DeviceClass

public class DeviceClass extends Object
This class is defined by the JSR-82 specification Java™ APIs for Bluetooth™ Wireless Technology, Version 1.1.

Fields Summary
private int
record
private static final int
MASK_MINOR
private static final int
MASK_MAJOR
private static final int
MASK_SERVICE
private static final int
MASK_OVERFLOW
Constructors Summary
public DeviceClass(int record)


    // JAVADOC COMMENT ELIDED 
       
        if ((record & MASK_OVERFLOW) != 0) {
            throw new IllegalArgumentException(
                    "The 'record' bits out of (0-23) range.");
        }
        this.record = record;
    
Methods Summary
public intgetMajorDeviceClass()

        return record & MASK_MAJOR;
    
public intgetMinorDeviceClass()

        return record & MASK_MINOR;
    
public intgetServiceClasses()

        return record & MASK_SERVICE;