I have xml returned like,
<UniequeTestList>
<UniequeTest>
<FirstName>a</FirstName>
<LastName>b</LastName>
</UniequeTest>
<UniequeTest>
<FirstName>a</FirstName>
<LastName>b</LastName>
</UniequeTest>
</UniequeTestList>
I unmarshal it using JaxB in List<UniequeTest>
.
And obviously that list must have mulitple object which are same.
Can I make it unieque at the same time I unmarshall it?
I can't use HashSet or LinkedHashSet to make it unieque at same time. I mean what I want in Unmarshall list is unieque object if value under that object is same.