I want to have a numeric data type starting at 1. Not use negative and 0.
So I could use Example class
public class Example extends Long {
private int min = 1;
public LifeTime(long value) {
this.value = value;
}
How could I change the min value of Long class with 1 at this Example data type class?
Is it possible to modify Long by extending the class?