/** * <p> * The activity type to deprecate. * </p> * This is a convenience that creates an instance of the {@link ActivityType.Builder} avoiding the need to * create one manually via {@link ActivityType#builder()}. * * When the {@link Consumer} completes, {@link ActivityType.Builder#build()} is called immediately and its * result is passed to {@link #activityType(ActivityType)}. * * @param activityType * a consumer that will call methods on {@link ActivityType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #activityType(ActivityType) */ default Builder activityType(Consumer<ActivityType.Builder> activityType) { return activityType(ActivityType.builder().applyMutation(activityType).build()); }
/** * <p> * The activity type to deprecate. * </p> * This is a convenience that creates an instance of the {@link ActivityType.Builder} avoiding the need to * create one manually via {@link ActivityType#builder()}. * * When the {@link Consumer} completes, {@link ActivityType.Builder#build()} is called immediately and its * result is passed to {@link #activityType(ActivityType)}. * * @param activityType * a consumer that will call methods on {@link ActivityType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #activityType(ActivityType) */ default Builder activityType(Consumer<ActivityType.Builder> activityType) { return activityType(ActivityType.builder().applyMutation(activityType).build()); }
/** * <p> * The activity type to deprecate. * </p> * This is a convenience that creates an instance of the {@link ActivityType.Builder} avoiding the need to * create one manually via {@link ActivityType#builder()}. * * When the {@link Consumer} completes, {@link ActivityType.Builder#build()} is called immediately and its * result is passed to {@link #activityType(ActivityType)}. * * @param activityType * a consumer that will call methods on {@link ActivityType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #activityType(ActivityType) */ default Builder activityType(Consumer<ActivityType.Builder> activityType) { return activityType(ActivityType.builder().applyMutation(activityType).build()); }