java code design puzzle for common function result module
I'm not sure I understood your question fully, but from what I could understand, you do not need to have both TypeOneResult and TypeTwoResult.  In fact, you probably do not need either of them.  You can use the value of the type member of the CommonResult class to distinguish among the different types.