MCPcopy Create free account
hub / github.com/androrm/androrm / equals

Method equals

src/src/com/orm/androrm/Model.java:448–461  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

446 }
447
448 @Override
449 public boolean equals(Object o) {
450 if(o instanceof Model) {
451 Model m = (Model) o;
452
453 if(getClass().equals(m.getClass())
454 && getId() == m.getId()) {
455
456 return true;
457 }
458 }
459
460 return false;
461 }
462
463 public int getId() {
464 return mId.get();

Callers 7

testEqualsMethod · 0.80
testSetAndGetMethod · 0.80
getForeignKeyFieldMethod · 0.80
getSuperclassMethod · 0.80
parseKeyMethod · 0.80
LikeStatementMethod · 0.80
hasFieldMethod · 0.80

Calls 1

getIdMethod · 0.95

Tested by 2

testEqualsMethod · 0.64
testSetAndGetMethod · 0.64