org.sadun.util
Class BaseObjectWithId

java.lang.Object
  extended byorg.sadun.util.BaseObjectWithId
All Implemented Interfaces:
ObjectWithId, java.io.Serializable

public abstract class BaseObjectWithId
extends java.lang.Object
implements java.io.Serializable, ObjectWithId

A base implementation of ObjectWithId.

This partial implementation stores the object id in the protected field #id, and can be used both for classes requiring id based equality only or requring also type-equality.

It also provides a default ObjectWithIdMetadata in #metadata, defininig: