@JsonbCreator public Magazine(@JsonbProperty("bookTitle") String title, @JsonbProperty("firstName") String firstName, @JsonbProperty("surname") String lastName) { this.title = title; this.authorName = new Author(firstName, lastName); }
@JsonbCreator public static Book createBook(@JsonbProperty("id") String id, @JsonbProperty("title") String title, @JsonbProperty("author") String author) { return new Book(id, title, author); }
@JsonbCreator CreatorPackagePrivateConstructor(@JsonbProperty("intVal") int intVal) { this.intVal = intVal; }
@JsonbCreator public CreatorWithoutJavabeanProperty(@JsonbProperty("s1") String s1, @JsonbProperty("s2") String s2) { this.strField = s1 + s2; }
@JsonbCreator public CreatorWithoutJsonbProperty(@JsonbProperty("s1") String par1, String par2, double d1) { this.par1 = par1; this.par2 = par2; this.par3 = d1; }
@JsonbCreator public CreatorWithoutJsonbProperty1(String par1, @JsonbProperty("s2") String par2, byte par3) { this.par1 = par1; this.par2 = par2; this.par3 = par3; }
@JsonbCreator public CreatorConstructorPojo(@JsonbProperty("str1") String str1, @JsonbProperty("str2") String str2) { this.str1 = str1; this.str2 = str2; }
@JsonbCreator public static Serializable getInstance() { return null; }
@JsonbCreator public CreatorMultipleDeclarationErrorPojo(@JsonbProperty("val1") String s1) { this.s1 = s1; }
@JsonbCreator public static CreatorMultipleDeclarationErrorPojo getInstance() { return null; }
@JsonbCreator public static CreatorFactoryMethodPojo getInstance(@JsonbProperty("par1") String str1, @JsonbProperty("par2")String str2) { return new CreatorFactoryMethodPojo(str1, str2); }
@JsonbCreator public DateConstructor(@JsonbProperty("localDate") @JsonbDateFormat(value = "dd-MM-yyyy", locale = "nl-NL") LocalDate localDate) { this.localDate = localDate; }
@JsonbCreator public DateConstructorMergedWithProperty(@JsonbProperty("localDate") LocalDate localDate) { this.localDate = localDate; }
@JsonbCreator public static FactoryNumberParam createInstance( @JsonbProperty("number") @JsonbNumberFormat(value = "000.000", locale = "en-us") BigDecimal number) { return new FactoryNumberParam(number); }
@JsonbCreator public static FactoryNumberParamMergedWithProperty createInstance(@JsonbProperty("number") BigDecimal number) { return new FactoryNumberParamMergedWithProperty(number); }