FileDocCategorySizeDatePackage
BluetoothMasInstance.javaAPI DocAndroid 5.1 API2860Thu Mar 12 22:22:10 GMT 2015android.bluetooth

BluetoothMasInstance

public final class BluetoothMasInstance extends Object implements android.os.Parcelable
hide

Fields Summary
private final int
mId
private final String
mName
private final int
mChannel
private final int
mMsgTypes
public static final Parcelable.Creator
CREATOR
Constructors Summary
public BluetoothMasInstance(int id, String name, int channel, int msgTypes)

        mId = id;
        mName = name;
        mChannel = channel;
        mMsgTypes = msgTypes;
    
Methods Summary
public intdescribeContents()

        return 0;
    
public booleanequals(java.lang.Object o)

        if (o instanceof BluetoothMasInstance) {
            return mId == ((BluetoothMasInstance)o).mId;
        }
        return false;
    
public intgetChannel()

        return mChannel;
    
public intgetId()

    

       
        return mId;
    
public intgetMsgTypes()

        return mMsgTypes;
    
public java.lang.StringgetName()

        return mName;
    
public inthashCode()

        return mId + (mChannel << 8) + (mMsgTypes << 16);
    
public booleanmsgSupported(int msg)

        return (mMsgTypes & msg) != 0;
    
public java.lang.StringtoString()

        return Integer.toString(mId) + ":" + mName + ":" + mChannel + ":" +
                Integer.toHexString(mMsgTypes);
    
public voidwriteToParcel(android.os.Parcel out, int flags)


          
        out.writeInt(mId);
        out.writeString(mName);
        out.writeInt(mChannel);
        out.writeInt(mMsgTypes);