Hello,
I have an Java library interface, and I have to implement the MyInt class, it gives me the error int cannot be dereferenced

I can't seem to understand why it's not compiling, can anyone help me please?
Thank You
Here's the code so far
import java.util.*;
public class MyInt
{
private int value;
public MyInt(int value)
{
this.value = value;
}
public String toString()
{
return ("My integer " + value);
}
public int getInteger()
{
return value;
}
public int compareTo(MyInt rhs)
{
if (value < rhs.value) return -1;
if (value > rhs.value) return 1;
return 0;
}
// public int intValue()
// {
// return intValue;
//
// }
public boolean equals(Object rhs)
{
if (!(rhs instanceof MyInt))
return false;
MyInt m = (MyInt)rhs;
return m.value.equals(value);
}
}
import java.util.*;
public interface Comparable<T>
{
int compareTo(T rhs);
}