62,634
社区成员




public static void main(String[] args) {
Test test=new Test();
//Test<Long> test=new Test<Long>();
test.setSubSet(0l);
test.setLongValue(1l);
System.out.println(test.getSubSet().compareTo(test.getLongValue()));
}
public class Test<SubSet extends Long> {
SubSet subSet;
Long longValue;
public SubSet getSubSet() {
return subSet;
}
public void setSubSet(SubSet subSet) {
this.subSet=subSet;
}
public Long getLongValue() {
return longValue;
}
public void setLongValue(Long longValue) {
this.longValue=longValue;
}
public static void main(String[] args) {
Test<Long> test=new Test<Long>();
test.setSubSet(0l);
test.setLongValue(1l);
System.out.println(test.getSubSet());
System.out.println(test.getLongValue());
}
}