mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-25 00:31:54 +00:00
committed by
Moxie Marlinspike
parent
4d8108f34d
commit
200fc0c599
@@ -640,5 +640,15 @@ public class PartDatabase extends Database {
|
||||
public boolean isValid() {
|
||||
return rowId >= 0 && uniqueId >= 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
if (!(object instanceof PartId)){
|
||||
return false;
|
||||
}
|
||||
|
||||
PartId other = (PartId) object;
|
||||
return rowId == other.rowId && uniqueId == other.uniqueId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user