public interface IdLookup<I>
class Foo implements IdLookup<Integer>then if
foo1.getId().equals(foo2.getId())
is true, so should.
foo1.equals(foo2)
Typical usecases are web requests or database persistence.| Modifier and Type | Method and Description |
|---|---|
I |
getId()
Returns the unique id of type <I> for this instance.
|
I getId()
Copyright © 2017. All rights reserved.