IStringIdentifiable

Interface for data objects that can be uniquely identified by a string id.

Extends: IIdentifiable

Description

The IIdentifiable interface extends IIdentifiable to hardcode id type to string.

Important points

  • It is common to use a string GUID as the id, generated by IdGenerator.
  • The interface extends IIdentifiable hardcode id type to string.

Examples

{@code
   public class MyData implements IStringIdentifiable {
     private String id;
     public String field1;
     public int field2;
     ...
     public String getId() {...}
     public void setId(String newId) {...}
   }
   }

See also