public constructor
implement Parcelable interface return 0;
return 0;
check for validity if (freqMHz < MIN_FREQ_MHZ || freqMHz > MAX_FREQ_MHZ) return false; if (channelNum < MIN_CHANNEL_NUM || channelNum > MAX_CHANNEL_NUM) return false; return true;
if (freqMHz < MIN_FREQ_MHZ || freqMHz > MAX_FREQ_MHZ) return false; if (channelNum < MIN_CHANNEL_NUM || channelNum > MAX_CHANNEL_NUM) return false; return true;
implement Parcelable interface out.writeInt(freqMHz); out.writeInt(channelNum); out.writeInt(isDFS ? 1 : 0);
out.writeInt(freqMHz); out.writeInt(channelNum); out.writeInt(isDFS ? 1 : 0);