Advertisement
GenuineSounds

Untitled

Feb 11th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. @Override
  2. public boolean equals(Object obj) {
  3.     if (!(obj instanceof Settings))
  4.         return false;
  5.     Settings that = (Settings) obj;
  6.     boolean notEqual = false;
  7.     notEqual |= this.rarity != that.rarity;
  8.     notEqual |= this.depth != that.depth;
  9.     notEqual |= this.nodes != that.nodes;
  10.     notEqual |= this.size != that.size;
  11.     notEqual |= this.spread != that.spread;
  12.     notEqual |= this.hardness != that.hardness;
  13.     notEqual |= this.resistance != that.resistance;
  14.     notEqual |= this.generate != that.generate;
  15.     return notEqual;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement