Search:

Type: Posts; User: jps

Search: Search took 0.09 seconds.

  1. Replies
    20
    Views
    1,940

    Re: HashSet store duplicated Value

    Looking at the code in the first post, which seems to be the only "complete" collection of code, I do not see a call to the equals method, nor do I see the method. Post the version of the code you...
  2. Replies
    20
    Views
    1,940

    Re: HashSet store duplicated Value

    Looking over the code, I do not see where the equals method was overridden, nor do I see where it is being called. (yes I saw the snippet, but I do not see the method in the code in the OP)
    If you...
  3. Replies
    20
    Views
    1,940

    Re: HashSet store duplicated Value

    Suggest search keywords
    Provide links to tutorials and/or documentation
    Explain functionality of incorrectly used keywords/symbols

    Much help can be provided without resorting to providing...
  4. Replies
    20
    Views
    1,940

    Re: HashSet store duplicated Value

    @syedbhai
    We strive to help people in solving their problems, without providing solutions, and we thank you to do the same.
    Please read: The problem with spoonfeeding.
  5. Replies
    20
    Views
    1,940

    Re: HashSet store duplicated Value

    I think that the use of the .equals method, in terms of comparing two objects, should return true if and only if all considered fields match in value
    It looks more like what you need here is to...
  6. Replies
    20
    Views
    1,940

    Re: HashSet store duplicated Value

    That would depend on how you define "correctly"

    || (or) returns true if either this or that are true.
    The desired result is probably to return true if this and that are both true
  7. Replies
    20
    Views
    1,940

    Re: HashSet store duplicated Value

    How did you compare one field?
    Do the same thing on each field you want compared. Looks like the method already makes two comparisons, what is the problem in adding a third or fourth?
    Give it a try...
  8. Replies
    20
    Views
    1,940

    Re: HashSet store duplicated Value

    You will have to write the body of the method to compare each field individually and return the overall results
Results 1 to 8 of 8