Avatar of rajannagpal
rajannagpal

asked on 

List.contains() method Java 1.5

I have a list  of salesCycle objects (salesCycle properties: cycleId, startDate, endDate). I have any other object sleCycle (sleCycle properties: cycleId, startDate,endDate), I want to check if the salesCycle.contains( sleCycle). salesCycle list contains the sleCycle if  salsesCycle.cycleId = sleCycleId. Can you  please guide me how can I check salesCycle list contains sleCycle based on comparing cycleId ? cycleId in both the objects is of type:String.
Java

Avatar of undefined
Last Comment
CEHJ

8/22/2022 - Mon