In our project we need to store some object (User, for example) and also User class must have a validation flag (methods like setOutdated and isOutdated)
From time to time, our User object may be null, but validation flag must be reachable in this case. It is possible to extract those methods from User class, but that field and methods must be inside that class because of semantics.
I've found some articles about Null Object pattern (like this), and I want to know - is it possible to create Null Object (as a pattern) which can store several states like null outdated, null not outdated, not null outdated and not null not outdated.
PS: If a introduce "Outdated" field in my class, it will be really hard to clear object instead of setting it to null