Methods Summary |
---|
public boolean | equals(java.lang.Object o)
GsmCellLocation s;
try {
s = (GsmCellLocation)o;
} catch (ClassCastException ex) {
return false;
}
if (o == null) {
return false;
}
return equalsHandlesNulls(mLac, s.mLac) && equalsHandlesNulls(mCid, s.mCid);
|
private static boolean | equalsHandlesNulls(java.lang.Object a, java.lang.Object b)Test whether two objects hold the same data values or both are null
return (a == null) ? (b == null) : a.equals (b);
|
public void | fillInNotifierBundle(android.os.Bundle m)Set intent notifier Bundle based on service state
m.putInt("lac", mLac);
m.putInt("cid", mCid);
|
public int | getCid()
return mCid;
|
public int | getLac()
return mLac;
|
public int | hashCode()
return mLac ^ mCid;
|
public void | setLacAndCid(int lac, int cid)Set the location area code and the cell id.
mLac = lac;
mCid = cid;
|
public void | setStateInvalid()Invalidate this object. The location area code and the cell id are set to -1.
mLac = -1;
mCid = -1;
|
public java.lang.String | toString()
return "["+ mLac + "," + mCid + "]";
|