Class GenerateEqualsAndHashCodeMethods

java.lang.Object
com.northconcepts.datapipeline.foundations.tools.GenerateEqualsAndHashCodeMethods

public class GenerateEqualsAndHashCodeMethods extends Object
Prints generated hashCode() and equals() methods covering the non-static, non-transient fields declared by the given classes.
  • Constructor Details

    • GenerateEqualsAndHashCodeMethods

      public GenerateEqualsAndHashCodeMethods()
  • Method Details

    • main

      public static void main(String[] args) throws Throwable
      Prints the methods for a hard-coded list of classes; the command-line arguments are ignored.
      Throws:
      Throwable
    • generate

      public void generate(Set<String> classNames) throws Throwable
      Prints hashCode() and equals() methods for each fully qualified class name to standard output.
      Throws:
      Throwable