public class LongIdStoreImpl<T> extends Object implements ILongIdStore<T>
| Constructor and Description |
|---|
LongIdStoreImpl(ISimpleStore<T> store,
java.util.function.Function<T,Long> identity) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T aEntity) |
Optional<T> |
findFirst(long aId) |
List<T> |
listAll(Comparator<T> aComparator) |
NotFoundPromise |
removeFirst(long aId) |
NotFoundPromise |
save(long aId,
T aEntity) |
public LongIdStoreImpl(ISimpleStore<T> store, java.util.function.Function<T,Long> identity)
public Optional<T> findFirst(long aId)
findFirst in interface ILongIdStore<T>public List<T> listAll(Comparator<T> aComparator)
listAll in interface ILongIdStore<T>public void add(T aEntity)
add in interface ILongIdStore<T>public NotFoundPromise save(long aId, T aEntity)
save in interface ILongIdStore<T>public NotFoundPromise removeFirst(long aId)
removeFirst in interface ILongIdStore<T>Copyright © 2023. All rights reserved.