Class IteratingWrapperClassBuilder

java.lang.Object
com.google.common.truth.codegen.IteratingWrapperClassBuilder

@GwtIncompatible("java.lang.reflect.*") public class IteratingWrapperClassBuilder extends Object
A builder of classes to wrap a provided SubjectFactory's concrete Subject subclass. The generated class will be a direct subclass of the concrete Subject subclass, but each public, protected, or friendly method not declared by Object will be wrapped such that invocations on it will be invoked on a new Subject instance populated with an element in the provided collection. This allows for a type-safe, IDE-discoverable Subject in a for-each style.
  • Field Details

    • className

      public final String className
  • Constructor Details

    • IteratingWrapperClassBuilder

      public IteratingWrapperClassBuilder(SubjectFactory<?,?> subjectFactory)
  • Method Details

    • build

      public String build()