Class NdLinkedList<T>
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.nd.NdLinkedList<T>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionNdLinkedList(Nd nd, long address, ITypeFactory<T> elementFactory, int recordsInFirstBlock, int recordsInSubsequentBlocks)NdLinkedList(Nd nd, long address, ITypeFactory<T> elementFactory, int recordsInFirstBlock, int recordsInSubsequentBlocks, int metadataBitsPerElement) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(NdLinkedList.ILinkedListVisitor<T> visitor)addMember(short metadataBits)protected voiddestruct()static <T> ITypeFactory<NdLinkedList<T>>getFactoryFor(ITypeFactory<T> elementFactory, int recordsInFirstBlock, int recordsInSubsequentBlocks)static <T> ITypeFactory<NdLinkedList<T>>getFactoryFor(ITypeFactory<T> elementFactory, int recordsInFirstBlock, int recordsInSubsequentBlocks, int metadataBitsPerElement)intsize()Computes the size of this list.
-
Constructor Details
-
NdLinkedList
public NdLinkedList(Nd nd, long address, ITypeFactory<T> elementFactory, int recordsInFirstBlock, int recordsInSubsequentBlocks) -
NdLinkedList
public NdLinkedList(Nd nd, long address, ITypeFactory<T> elementFactory, int recordsInFirstBlock, int recordsInSubsequentBlocks, int metadataBitsPerElement)
-
-
Method Details
-
size
Computes the size of this list. This is an O(n) operation.- Returns:
- the size of this list
- Throws:
IndexException
-
addMember
- Throws:
IndexException
-
accept
- Throws:
IndexException
-
getFactoryFor
public static <T> ITypeFactory<NdLinkedList<T>> getFactoryFor(ITypeFactory<T> elementFactory, int recordsInFirstBlock, int recordsInSubsequentBlocks) -
getFactoryFor
public static <T> ITypeFactory<NdLinkedList<T>> getFactoryFor(ITypeFactory<T> elementFactory, int recordsInFirstBlock, int recordsInSubsequentBlocks, int metadataBitsPerElement) -
destruct
protected void destruct()
-