Class IsDataClassWithDefaultValuesPredicate

java.lang.Object
io.quarkus.kotlin.deployment.IsDataClassWithDefaultValuesPredicate
All Implemented Interfaces:
Predicate<org.jboss.jandex.ClassInfo>

public class IsDataClassWithDefaultValuesPredicate extends Object implements Predicate<org.jboss.jandex.ClassInfo>
Tests whether a class is a data class (based on this answer: https://discuss.kotlinlang.org/t/detect-data-class-in-runtime/6155/2) and whether the class has default values for fields (default values leads to having multiple constructors in bytecode)
  • Constructor Details

    • IsDataClassWithDefaultValuesPredicate

      public IsDataClassWithDefaultValuesPredicate()
  • Method Details

    • test

      public boolean test(org.jboss.jandex.ClassInfo classInfo)
      Specified by:
      test in interface Predicate<org.jboss.jandex.ClassInfo>