I'm using a method:
public List<IRecord> combineTypes(List<IRecord>)
Which will take the required values from the IRecord objects and combine like values, updating and returning the updated list.
However, IRecord
is an interface. I'm attempting to call the combineTypes()
method on passing in a list of an object that implements the IRecord interface:
For example, the CoverageRecord
class implements IRecord
and I am trying to call
combineTypes(data)
where data
is a List<CoverageRecord>
But my compiler is throwing an error, saying I am passing in an invalid argument.
Is there a workaround or something I am missing? I feel like I'm just brain-farting.