Child pages
  • HashCode plugin
Skip to end of metadata
Go to start of metadata

HashCode plugin

HashCode plugin generates hashCode(...) methods:

Generated methods allow you to specify a custom hash code strategy (hash code strategy).

Activation

Use the -XhashCode argument to activate the plugin.

Configuration

By default, generated code uses org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy as hash code strategy. You can specify class name of your custom strategy using the -XhashCode-hashCodeStrategyClass argument:

  • No labels