Class NdLinkedList<T>
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.nd.NdLinkedList<T>
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionNdLinkedList(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 TypeMethodDescriptionvoid
accept(NdLinkedList.ILinkedListVisitor<T> visitor)
addMember(short metadataBits)
protected void
destruct()
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)
int
size()
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()
-