public long getTime() {
return getTimeImpl();
}
private final long getTimeImpl() {
if (cdate != null && !cdate.isNormalized()) {
normalize();
}
return fastTime;
}
我对代码段有点困惑。为什么他没有像下面这样写?我认为它可能具有更高的可读性。
public long getTime(){
if (cdate != null && !cdate.isNormalized()) {
normalize();
}
return fastTime;
}