package me.proxer.library.entity.info;

import com.squareup.moshi.Json;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Value;
import me.proxer.library.entity.ProxerIdItem;
import me.proxer.library.enums.Medium;

import javax.annotation.Nullable;

@Value
@EqualsAndHashCode(onParam = @__({@Nullable}))
public class AdaptionInfo implements ProxerIdItem {

    /**
     * Returns the id of this comment.
     */
    @Getter(onMethod = @__({@Override}))
    @Json(name = "id")
    private String id;

    /**
     * Returns the medium
     */
    @Json(name = "name")
    private String name;

    /**
     * Returns the medium
     */
    @Nullable
    @Json(name = "medium")
    private Medium medium;

    public AdaptionInfo(final String id, final String name, @Nullable final Medium medium) {
        this.id = id;
        this.name = name;
        this.medium = medium;
    }
}

@@ -718,185 +718,7 @@
 ium;
-%0A%0A    public AdaptionInfo(final String id, final String name, @Nullable final Medium medium) %7B%0A        this.id = id;%0A        this.name = name;%0A        this.medium = medium;%0A    %7D
 %0A%7D%0A

Work around nullability problems