01: /***
02: * jwma Java WebMail
03: * Copyright (c) 2000-2003 jwma team
04: *
05: * jwma is free software; you can distribute and use this source
06: * under the terms of the BSD-style license received along with
07: * the distribution.
08: ***/package dtw.webmail.util;
09:
10: /**
11: * Interface modeling an <tt>Associator</tt>.
12: *
13: * @author Dieter Wimberger
14: * @version 0.9.7 07/02/2003
15: */
16: public interface Identifiable {
17:
18: /**
19: * Returns the unique identifier of
20: * this <tt>Identifiable</tt>.
21: *
22: * @return the unique identifier as <tt>String</tt>.
23: */
24: public String getUID();
25:
26: /**
27: * Tests if this <tt>Identifiable</tt> is
28: * equal to a given <tt>Object</tt> instance.
29: * Equality is defined by equality of the
30: * unique identifier.
31: *
32: * @param o the <tt>Object</tt> to compare to.
33: * @return true if equal, false otherwise.
34: */
35: public boolean equals(Object o);
36:
37: }//interface Identifiable
|