Closed GoogleCodeExporter closed 9 years ago
Is it important to document the tri-stateness of this? That is, a plain old
null means not present at all. A returned object could contain both nulls and
Data.Nulls. So we end up with
if (a == null) {
System.out.println("no value present");
} else if (Data.isNull(a.value)) {
System.out.println("value is null");
} else {
System.out.println("value is " + a.value);
}
Original comment by ai...@google.com
on 25 Apr 2011 at 9:44
Yes, good point! Data.isNull(null) is false for this reason.
Original comment by yan...@google.com
on 26 Apr 2011 at 11:16
http://codereview.appspot.com/4437045/
Original comment by yan...@google.com
on 27 Apr 2011 at 1:04
Original comment by yan...@google.com
on 2 May 2011 at 5:57
Original issue reported on code.google.com by
yan...@google.com
on 25 Apr 2011 at 11:38