Package edu.yu.marketmaker.memory
Interface Repository<K,T extends Identifiable<K>>
- Type Parameters:
K- the key typeT- the entity type, must implement Identifiable
- All Known Implementing Classes:
HazelcastRepository,StaticPositionRepository,StaticQuoteRepository
public interface Repository<K,T extends Identifiable<K>>
Generic repository interface for entities that implement Identifiable.
-
Method Summary
-
Method Details
-
get
Get mapped value- Parameters:
id- key of the entity- Returns:
-
put
Store entity- Parameters:
entity- to be stored
-
getAll
Collection<T> getAll()Get all mapped values- Returns:
-
delete
Delete entity- Parameters:
id- key of the entity
-