java Programming Glossary: recordtype2
Is This Use of the “instanceof” Operator Considered Bad Design? http://stackoverflow.com/questions/8841577/is-this-use-of-the-instanceof-operator-considered-bad-design projects I have two data transfer objects RecordType1 and RecordType2 that inherit from an abstract class of RecordType. I want both.. process RecordType1 record else if record instanceof RecordType2 return process RecordType2 record throw new IllegalArgumentException.. else if record instanceof RecordType2 return process RecordType2 record throw new IllegalArgumentException record public RecordType1..
|