Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean equals(Asset other){
- if((this.area == other.area) && (this.content == other.content)) {
- return true;
- }
- if (!(other instanceof Asset)) {
- return false;
- }
- Asset asset = (Asset) other;
- return(asset.area.equals(this.area) && this.content == asset.content);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement