@Retention(value=RUNTIME) @Target(value={TYPE,FIELD,PARAMETER,METHOD,ANNOTATION_TYPE}) @Documented @Experimental(value="Allow you to map to and from another object. Not covered by the specification. Subject to change.") public @interface AdaptWith
public class Profile {
// Map a EmailAdress to an Address
@AdaptWith(EmailAdapter.class)
private Address email;
// other getters/setters...
}
Copyright © 2018–2022. All rights reserved.