Package org.hibernate.sql.results.graph
Interface FetchList
-
- All Known Implementing Classes:
ImmutableFetchList
@Incubating public interface FetchList extends Iterable<Fetch>
This is essentially a List of Fetch(es), but exposing an interface which is more suitable to our needs; in particular it expresses the immutable nature of this structure, and allows us to extend it with additional convenience methods such asindexedForEach(IndexedConsumer)
. And additional reason for the custom interface is to allow custom implementations which can be highly optimised as necessary for our specific needs; for example the implementationImmutableFetchList
is able to avoid caching problems related to JDK-8180450, which would not have been possible with a standard generic container.- Since:
- 6.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
containsCollectionFetches()
void
forEach(Consumer<? super Fetch> consumer)
Fetch
get(Fetchable fetchable)
default boolean
hasJoinFetches()
void
indexedForEach(IndexedConsumer<? super Fetch> consumer)
boolean
isEmpty()
int
size()
default Stream<Fetch>
stream()
-
Methods inherited from interface java.lang.Iterable
iterator, spliterator
-
-
-
-
Method Detail
-
size
int size()
-
isEmpty
boolean isEmpty()
-
indexedForEach
void indexedForEach(IndexedConsumer<? super Fetch> consumer)
-
hasJoinFetches
default boolean hasJoinFetches()
-
containsCollectionFetches
default boolean containsCollectionFetches()
-
-