Interface Mode

All Known Implementing Classes:
ModeInstance

public sealed interface Mode permits ModeInstance
Provides a number of modes that influence how EqualsVerifier operates.
Since:
4.0
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static Mode
    Forces that reflection on final fields is impossible.
    static Mode
    Signals that EqualsVerifier should not use Mockito, even if it's available on the classpath or modulepath.
  • Method Details

    • skipMockito

      static Mode skipMockito()
      Signals that EqualsVerifier should not use Mockito, even if it's available on the classpath or modulepath.
      Returns:
      The skipMockito mode.
      Since:
      4.0
    • finalMeansFinal

      static Mode finalMeansFinal()
      Forces that reflection on final fields is impossible. This is useful when preparing to migrate to a JDK where JEP 500 ("final means final") is active.
      Returns:
      The finalMeansFinal mode.
      Since:
      4.4