package com.bt.openlink.type;

import java.util.Objects;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

public class AbstractType<T> {
    private final T value;

    protected AbstractType(final T value) {
        this.value = value;
    }

    @Nullable
    public T value() {
        return value;
    }

    @Nonnull
    @Override
    public String toString() {
        return String.valueOf(value);
    }

    @Override
    public boolean equals(final Object o) {
        if (this == o) {
            return true;
        }

        if (o == null || this.getClass() != o.getClass()) {
            return false;
        }

        final AbstractType that = (AbstractType) o;
        return Objects.equals(this.value, that.value);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(value);
    }

}

@@ -87,42 +87,8 @@
 ull;
-%0Aimport javax.annotation.Nullable;
 %0A%0Apu
@@ -120,16 +120,25 @@
 %3E %7B%0A    
+@Nonnull 
 private 
@@ -180,16 +180,25 @@
 actType(
+@Nonnull 
 final T 
@@ -251,15 +251,14 @@
   @N
+onn
 ull
-able
 %0A   

Make the abstract types non-nullable