title: what is the best way to implement a mapper in java?
body: <p>I have three request objects called Request1To,Request2To,Request3To.
  I want to have a method that takes in any of these TO's and return a response object.
  I have currently implemented like this</p>
  
  <pre><code>class Mapper{
       public ResponseTo mapRequest1(Request1To){
  
        }
  
       public ResponseTo mapRequest2(Request2To){
  
        }
  
      public ResponseTo mapRequest3(Request3To){
  
        }
  
  }
  </code></pre>
  
  <p>Is there a better way to do this instead of creating a seperate method for each request object?</p>