- notNull(aId);
- dirty = true;
- return registered.remove(aId) != null;
- }
-
- @Override
- public Map<Id<T>, T> map() {
- return Collections.unmodifiableMap(registered);
- }
-
- private void notNull(T aT) {
- if (aT == null) {
- throw new NullPointerException("Object is null");
- }
- }
-
- private void notNull(Id<T> aId) {
- if (aId == null) {
- throw new NullPointerException("Id is null");