Top Inners Fields Constructors Methods
org.hibernate.sql.results.graph.internal

public final Class ImmutableFetchList

extends Object
implements FetchList
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.results.graph.FetchList, java.lang.Iterable
Imports
java.util.Collections, .Iterator, java.util.function.Consumer, org.hibernate.internal.util.IndexedConsumer, org.hibernate.sql.results.graph.Fetch, .FetchList, .Fetchable, .FetchableContainer

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
private class

Field Summary

Modifier and TypeField and Description
public static ImmutableFetchList
private final Fetch[]

Constructor Summary

AccessConstructor and Description
private
private

Method Summary

Modifier and TypeMethod and Description
public void
forEach(Consumer<? super Fetch>
The action to be performed for each element
consumer
)

Implements org.hibernate.sql.results.graph.FetchList.forEach.

Performs the given action for each element of the Iterable until all elements have been processed or the action throws an exception.
public Fetch
public void
public boolean
public Iterator<Fetch>
iterator()

Implements java.lang.Iterable.iterator.

Returns an iterator over elements of type T.
public int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMPTYback to summary
public static ImmutableFetchList EMPTY
fetchesback to summary
private final Fetch[] fetches

Constructor Detail

ImmutableFetchListback to summary
private ImmutableFetchList()
ImmutableFetchListback to summary
private ImmutableFetchList(Fetch[] fetches)

Method Detail

forEachback to summary
public void forEach(Consumer<? super Fetch> consumer)

Implements org.hibernate.sql.results.graph.FetchList.forEach.

Doc from java.lang.Iterable.forEach.

Performs the given action for each element of the Iterable until all elements have been processed or the action throws an exception. Actions are performed in the order of iteration, if that order is specified. Exceptions thrown by the action are relayed to the caller.

The behavior of this method is unspecified if the action performs side-effects that modify the underlying source of elements, unless an overriding class has specified a concurrent modification policy.

Parameters
consumer:Consumer<? super Fetch>

The action to be performed for each element

Annotations
@Override
getback to summary
public Fetch get(Fetchable fetchable)

Implements org.hibernate.sql.results.graph.FetchList.get.

Annotations
@Override
indexedForEachback to summary
public void indexedForEach(IndexedConsumer<? super Fetch> consumer)

Implements org.hibernate.sql.results.graph.FetchList.indexedForEach.

Annotations
@Override
isEmptyback to summary
public boolean isEmpty()

Implements org.hibernate.sql.results.graph.FetchList.isEmpty.

Annotations
@Override
iteratorback to summary
public Iterator<Fetch> iterator()

Implements java.lang.Iterable.iterator.

Doc from java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

Returns:Iterator<Fetch>

an Iterator.

Annotations
@Override
sizeback to summary
public int size()

Implements org.hibernate.sql.results.graph.FetchList.size.

Annotations
@Override
org.hibernate.sql.results.graph.internal back to summary

public Class ImmutableFetchList.Builder

extends Object
Class Inheritance
  • java.lang.Object
  • org.hibernate.sql.results.graph.internal.ImmutableFetchList.Builder

Field Summary

Modifier and TypeField and Description
private final Fetch[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
add(Fetch fetch)

public ImmutableFetchList
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fetchesback to summary
private final Fetch[] fetches

Constructor Detail

Builderback to summary
public Builder(FetchableContainer container)

Method Detail

addback to summary
public void add(Fetch fetch)
buildback to summary
public ImmutableFetchList build()
org.hibernate.sql.results.graph.internal back to summary

private final Class ImmutableFetchList.FetchIterator

extends Object
implements Iterator<Fetch>
Class Inheritance
  • java.lang.Object
  • org.hibernate.sql.results.graph.internal.ImmutableFetchList.FetchIterator
All Implemented Interfaces
java.util.Iterator

Field Summary

Modifier and TypeField and Description
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
hasNext()

Implements java.util.Iterator.hasNext.

Returns true if the iteration has more elements.
public Fetch
next()

Implements java.util.Iterator.next.

Returns the next element in the iteration.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

idxback to summary
private int idx

Constructor Detail

FetchIteratorback to summary
public FetchIterator()

Method Detail

hasNextback to summary
public boolean hasNext()

Implements java.util.Iterator.hasNext.

Doc from java.util.Iterator.hasNext.

Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

Returns:boolean

true if the iteration has more elements

Annotations
@Override
nextback to summary
public Fetch next()

Implements java.util.Iterator.next.

Doc from java.util.Iterator.next.

Returns the next element in the iteration.

Returns:Fetch

the next element in the iteration

Annotations
@Override