V
VisionSet
Having read the API docs for Collection.add
What are the pitfalls, when my implementation decides not to add for its own
reasons and returns false.
My Collection disallows 'overlapping' objects, that is not to say they are
Object.equal
So I'm not creating a kind of Set.
There is only one way equals can be implemented (for any one class) compared
with (forgive pun) compare(), which can be implemented in many ways via
Comparator.
If I could have multiple equals methods I could have any 'overlapping'
object is equal equals().
But there isn't and there isn't a:
java.util.Set.add(Object obj, Comparator comp)
on which to judge object equality.
What are the pitfalls, when my implementation decides not to add for its own
reasons and returns false.
My Collection disallows 'overlapping' objects, that is not to say they are
Object.equal
So I'm not creating a kind of Set.
There is only one way equals can be implemented (for any one class) compared
with (forgive pun) compare(), which can be implemented in many ways via
Comparator.
If I could have multiple equals methods I could have any 'overlapping'
object is equal equals().
But there isn't and there isn't a:
java.util.Set.add(Object obj, Comparator comp)
on which to judge object equality.