Package org.hibernate.persister.entity
Interface AttributeMappingsList
-
- All Superinterfaces:
Iterable<AttributeMapping>
- All Known Implementing Classes:
ImmutableAttributeMappingList,MutableAttributeMappingList
public interface AttributeMappingsList extends Iterable<AttributeMapping>
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 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 implementationImmutableAttributeMappingListis 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 Modifier and Type Method Description voidforEach(Consumer<? super AttributeMapping> attributeMappingConsumer)AttributeMappingget(int i)voidindexedForEach(IndexedConsumer<? super AttributeMapping> consumer)intsize()-
Methods inherited from interface java.lang.Iterable
iterator, spliterator
-
-
-
-
Method Detail
-
size
int size()
-
get
AttributeMapping get(int i)
-
forEach
void forEach(Consumer<? super AttributeMapping> attributeMappingConsumer)
- Specified by:
forEachin interfaceIterable<AttributeMapping>
-
indexedForEach
void indexedForEach(IndexedConsumer<? super AttributeMapping> consumer)
-
-