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