diff options
Diffstat (limited to 'projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSRange.java')
| -rw-r--r-- | projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSRange.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSRange.java b/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSRange.java index 13dca2f..5c54a08 100644 --- a/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSRange.java +++ b/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSRange.java @@ -110,6 +110,7 @@ public class NSRange implements Cloneable { /** * Returns whether the specified object is equal to this range. */ + @Override public boolean equals(Object anObject) { if (anObject instanceof NSRange) return isEqualToRange((NSRange) anObject); @@ -119,6 +120,7 @@ public class NSRange implements Cloneable { /** * Returns a hashCode. */ + @Override public int hashCode() { // TODO: Test this logic. return (location() << 2) & length(); // bitwise ops never my forte @@ -127,6 +129,7 @@ public class NSRange implements Cloneable { /** * Returns a string representation of this range. */ + @Override public String toString() { return "[NSRange: location = " + location() + "; length = " + length() + "]"; } @@ -264,6 +267,7 @@ public class NSRange implements Cloneable { /** * Returns a copy of this range. */ + @Override public Object clone() { return new NSRange(location(), length()); } |
