@ThreadSafe public interface IMapBasedDAO<INTERFACETYPE extends com.helger.commons.id.IHasID<String>>
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAny() |
boolean |
containsAny(Predicate<? super INTERFACETYPE> aFilter) |
boolean |
containsNone() |
boolean |
containsNone(Predicate<? super INTERFACETYPE> aFilter) |
boolean |
containsOnly(Predicate<? super INTERFACETYPE> aFilter) |
boolean |
containsWithID(String sID) |
void |
findAll(Predicate<? super INTERFACETYPE> aFilter,
Consumer<? super INTERFACETYPE> aConsumer) |
<RETTYPE> void |
findAllMapped(Predicate<? super INTERFACETYPE> aFilter,
Function<? super INTERFACETYPE,? extends RETTYPE> aMapper,
Consumer<? super RETTYPE> aConsumer) |
INTERFACETYPE |
findFirst(Predicate<? super INTERFACETYPE> aFilter) |
<RETTYPE> RETTYPE |
findFirstMapped(Predicate<? super INTERFACETYPE> aFilter,
Function<? super INTERFACETYPE,? extends RETTYPE> aMapper) |
com.helger.commons.collection.ext.ICommonsList<? extends INTERFACETYPE> |
getAll() |
com.helger.commons.collection.ext.ICommonsList<? extends INTERFACETYPE> |
getAll(Predicate<? super INTERFACETYPE> aFilter) |
com.helger.commons.collection.ext.ICommonsSet<String> |
getAllIDs() |
<RETTYPE> com.helger.commons.collection.ext.ICommonsList<RETTYPE> |
getAllMapped(Predicate<? super INTERFACETYPE> aFilter,
Function<? super INTERFACETYPE,? extends RETTYPE> aMapper) |
int |
getCount() |
int |
getCount(Predicate<? super INTERFACETYPE> aFilter) |
@Nonnull @ReturnsMutableCopy com.helger.commons.collection.ext.ICommonsList<? extends INTERFACETYPE> getAll()
@Nonnull @ReturnsMutableCopy com.helger.commons.collection.ext.ICommonsList<? extends INTERFACETYPE> getAll(@Nullable Predicate<? super INTERFACETYPE> aFilter)
void findAll(@Nullable Predicate<? super INTERFACETYPE> aFilter, @Nonnull Consumer<? super INTERFACETYPE> aConsumer)
@Nonnull @ReturnsMutableCopy <RETTYPE> com.helger.commons.collection.ext.ICommonsList<RETTYPE> getAllMapped(@Nullable Predicate<? super INTERFACETYPE> aFilter, @Nonnull Function<? super INTERFACETYPE,? extends RETTYPE> aMapper)
<RETTYPE> void findAllMapped(@Nullable Predicate<? super INTERFACETYPE> aFilter, @Nonnull Function<? super INTERFACETYPE,? extends RETTYPE> aMapper, @Nonnull Consumer<? super RETTYPE> aConsumer)
@Nullable INTERFACETYPE findFirst(@Nullable Predicate<? super INTERFACETYPE> aFilter)
@Nullable <RETTYPE> RETTYPE findFirstMapped(@Nullable Predicate<? super INTERFACETYPE> aFilter, @Nonnull Function<? super INTERFACETYPE,? extends RETTYPE> aMapper)
boolean containsAny()
boolean containsAny(@Nullable Predicate<? super INTERFACETYPE> aFilter)
boolean containsNone()
boolean containsNone(@Nullable Predicate<? super INTERFACETYPE> aFilter)
boolean containsOnly(@Nullable Predicate<? super INTERFACETYPE> aFilter)
@Nonnull @ReturnsMutableCopy com.helger.commons.collection.ext.ICommonsSet<String> getAllIDs()
@Nonnegative int getCount()
@Nonnegative int getCount(@Nullable Predicate<? super INTERFACETYPE> aFilter)
Copyright © 2014–2017 Philip Helger. All rights reserved.