title: Understanding Java Converter interface
body: <p>I need to add the interface called <code>Converter&lt;Destination, Source&gt;</code> to provide conversion facilities. I'd write it as follows:</p>
  
  <pre><code>public interface Converter&lt;Destination, Source&gt;{
      public Destrination convert(Source o);
  }
  </code></pre>
  
  <p>I'm using thrid-party libraries which always have converter interfaces satisfied my needs more-or-less. Should I consider to use them instead of adding the new interface? I'd say no, it would be better off creating a new interface because otherwise we would couple our code to the library which interface we use.</p>
  
  <p>So, what would be the right choice?</p>