I have two ArrayList as :
ArrayOne
ClassPojo [Name ="XXX", FilterID = 4]
ClassPojo [Name = "ZZZ", FilterID = 5]
ArrayTwo
ClassPojo [Name = "XXX", FilterID = 4]
but when try to use:
Arrays.asList(ArrayOne).contains(ArrayTwo )
or
ArrayOne().containsAll(ArrayTwo)
it returns false, i know the comparing is based on Refrences not Values equlaty but how i can do it by values note that: i want to use conatinsAll , so if the content of arrayTwo is found in some part of ArrayOne return true .