daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public interface FileProccessor {
  2.     public <RT> RT setHeader(RT header);
  3. }
  4.  
  5. public class AProcessor implements FileProccessor {
  6.  
  7.     @Override
  8.     public Header setHeader(Header header) {
  9.         return null;
  10.     }
  11. }
  12.    
  13. public <RT> RT setHeader(RT header);
  14.    
  15. public interface FileProccessor<T> {
  16.     public T setHeader(T header);
  17. }
  18.  
  19. public class AProcessor implements FileProccessor<Header> {
  20. }
  21.    
  22. public interface FileProccessor<RT, RX> {
  23.     public RT setHeader(RT header);
  24.     public RX setFooter(RX footer);
  25. }
  26.  
  27. public class AProcessor implements FileProccessor<Header, Footer> {
  28.  
  29.     @Override
  30.     public Header setHeader(Header header) {
  31.         return null;
  32.     }
  33.  
  34.     @Override
  35.     public Footer setFooter(Footer footer) {
  36.         return null;
  37.     }
  38. }
  39.    
  40. public interface FileProccessor<RT> {
  41.     public RT setHeader(RT header);
  42. }
  43.    
  44. public class AProcessor implements FileProccessor<Header> {
  45.     @Override
  46.     public Header setHeader(Header header) {
  47.         return null;
  48.     }
  49. }
  50.    
  51. FileProcessor f = new AProcessor();
  52. String s =  f.setHeader("Bah");
  53.    
  54. public interface FileProccessor<RT> {
  55.     public RT setHeader(RT header);
  56. }
  57.  
  58. public class AProcessor implements FileProccessor<Header> {
  59.  
  60.     @Override
  61.     public Header setHeader(Header header) {
  62.         return null;
  63.     }
  64. }
  65.    
  66. FileProcessor<Header> f = new AProcessor();
  67.    
  68. @Override
  69.     public Object setHeader(Object header) {
  70.         return null;
  71.     }
  72.    
  73. public interface FileProccessor<T> {
  74.     public T setHeader(T header);
  75.  }
  76.    
  77. public class AProcessor implements FileProccessor<Header> {
  78.     @Override
  79.     public Header setHeader(Header header) {
  80.         return null;
  81.     }
  82. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top