Hyphen icon indicating copy to clipboard operation
Hyphen copied to clipboard

Support factory methods instead of constructors

Open Kroppeb opened this issue 4 years ago • 0 comments

Allow something like this

class Foo<T>{
  private final int hash;
  @Serialize
  private final T t; 

  private Foo(int hash, T t){ ... }

  @SerFactory
  public static Foo<T> of(T t){ ... }
}

Kroppeb avatar Sep 24 '21 23:09 Kroppeb