SpecimenType currently creates a new instance of itself if a Type argument is passed into the equals(Object) method. This isn't ideal because nearly every builder checks the incoming request is of a certain type so we end up making loads of unnecessary instances of SpecimenType that get immediately thrown away.
Ideally the equals would work without having to do this. Although at present nothing elegant comes to mind.
SpecimenType currently creates a new instance of itself if a Type argument is passed into the
equals(Object)
method. This isn't ideal because nearly every builder checks the incoming request is of a certain type so we end up making loads of unnecessary instances of SpecimenType that get immediately thrown away.Ideally the equals would work without having to do this. Although at present nothing elegant comes to mind.