Class KeySortedEntityList
java.lang.Object
ch.tocco.nice2.persist.core.api.entity.AbstractEntityList
ch.tocco.nice2.persist.core.api.entity.AbstractEntityListWrapper
ch.tocco.nice2.persist.core.api.util.AbstractSortedEntityList
ch.tocco.nice2.persist.core.api.util.KeySortedEntityList
- All Implemented Interfaces:
EntityList
,Iterable<Entity>
- Direct Known Subclasses:
KeyListSortedEntityList
A wrapper over an
EntityList
to sort the entries by PrimaryKey.-
Nested Class Summary
Nested classes/interfaces inherited from class ch.tocco.nice2.persist.core.api.entity.AbstractEntityList
AbstractEntityList.SimpleIterator
Nested classes/interfaces inherited from interface ch.tocco.nice2.persist.core.api.entity.EntityList
EntityList.Filter
-
Field Summary
Fields inherited from class ch.tocco.nice2.persist.core.api.util.AbstractSortedEntityList
keys
Fields inherited from class ch.tocco.nice2.persist.core.api.entity.AbstractEntityListWrapper
entityList
-
Constructor Summary
ConstructorDescriptionKeySortedEntityList
(EntityList entityList, Comparator<PrimaryKey> comparator) -
Method Summary
Methods inherited from class ch.tocco.nice2.persist.core.api.util.AbstractSortedEntityList
get, getKey, getKeys, indexOf, size
Methods inherited from class ch.tocco.nice2.persist.core.api.entity.AbstractEntityListWrapper
getManager, getModel, getPageCount, getPageSize, setPageSize, unwrap
Methods inherited from class ch.tocco.nice2.persist.core.api.entity.AbstractEntityList
contains, expect, expectAtLeast, expectAtMost, get, get, get, isEmpty, iterator, toList, toList
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.entity.EntityList
doWithSingleResult, doWithSingleResultOr, expectAtMostOrThrow, expectOr, expectOrThrow, getFirstEntity, getOnlyResult, getOptionalOnlyResult, getOptionalOnlyResult, requireFirstEntity, spliterator, stream
-
Constructor Details
-
KeySortedEntityList
public KeySortedEntityList(EntityList entityList, Comparator<PrimaryKey> comparator) throws PersistException - Throws:
PersistException
-