fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.lang.reflect.*;
  6. import java.io.*;
  7. import java.time.*;
  8.  
  9. class Pair<T> {
  10. public static void main(String[] args) throws NoSuchMethodException, SecurityException {
  11. for (Method method : DateInterval.class.getMethods()) {
  12. if (method.isBridge()) {
  13. System.out.println(method);
  14. }
  15. }
  16. }
  17.  
  18. private T first;
  19.  
  20. private T second;
  21.  
  22. public Pair() {
  23. }
  24.  
  25. public Pair(T first, T second) {
  26. this.first = first;
  27. this.second = second;
  28. }
  29.  
  30. public T getFirst() {
  31. return first;
  32. }
  33.  
  34. public void setFirst(T first) {
  35. this.first = first;
  36. }
  37.  
  38. public T getSecond() {
  39. return second;
  40. }
  41.  
  42. public void setSecond(T second) {
  43. this.second = second;
  44. }
  45. }
  46.  
  47. class DateInterval extends Pair<LocalDate> {
  48. @Override
  49. public void setFirst(LocalDate first) {
  50. super.setFirst(first);
  51. }
  52. }
Success #stdin #stdout 0.07s 34324KB
stdin
Standard input is empty
stdout
public void DateInterval.setFirst(java.lang.Object)