Fix up entry assignment and tests.

This commit is contained in:
Brian Pellin committed 2010-06-08 22:03:22 -05:00
1 parent 1b3d634575
commit 4d96fa29e0
9 files changed
+400 -6

No files matched your search

+20 -1
View File
@@ -46,8 +46,11 @@ public abstract class PwEntry implements Cloneable {
}
public void assign(PwEntry source) {
imageId = source.imageId;
}
public abstract void stampLastAccess();
public abstract UUID getUUID();
@@ -70,4 +73,20 @@ public abstract class PwEntry implements Cloneable {
return false;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
PwEntry other = (PwEntry) obj;
if (imageId != other.imageId)
return false;
return true;
}
}