fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. new Ideone.TraitValuesFinderImpl.Builder()
  13. .setX("\\d+\\+?\\s*lat")
  14. .build();
  15. }
  16.  
  17. public static class TraitValuesFinderImpl<T> {
  18.  
  19. private final String x;
  20.  
  21. private TraitValuesFinderImpl(Builder<T> builder) {
  22. this.x = builder.x;
  23. }
  24.  
  25. public static class Builder<T> {
  26. String x;
  27.  
  28. public Builder<T> setX(String x) {
  29. this.x = x;
  30. return this;
  31. }
  32.  
  33. public TraitValuesFinderImpl<T>build() {
  34. return new TraitValuesFinderImpl<T>(this);
  35. }
  36. }
  37. }
  38. }
Success #stdin #stdout 0.04s 2184192KB
stdin
Standard input is empty
stdout
Standard output is empty