Top Description Methods
org.hibernate.metamodel.mapping

public Interface AttributeMappingsList

Known Direct Implementers
org.hibernate.metamodel.mapping.internal.ImmutableAttributeMappingList, org.hibernate.metamodel.mapping.internal.MutableAttributeMappingList
Annotations
@Incubating
Imports
java.util.function.Consumer, org.hibernate.Incubating, org.hibernate.internal.util.IndexedConsumer, org.hibernate.metamodel.mapping.internal.ImmutableAttributeMappingList

This is essentially a List of AttributeMapping(s), 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 as indexedForEach(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 implementation ImmutableAttributeMappingList 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

Modifier and TypeMethod and Description
public void
forEach(Consumer<? super AttributeMapping> attributeMappingConsumer)

public AttributeMapping
get(int i)

public void
public int
size()

Method Detail

forEachback to summary
public void forEach(Consumer<? super AttributeMapping> attributeMappingConsumer)
getback to summary
public AttributeMapping get(int i)
indexedForEachback to summary
public void indexedForEach(IndexedConsumer<? super AttributeMapping> consumer)
sizeback to summary
public int size()