org.bridj
Interface NativeList<T>

All Superinterfaces:
Collection<T>, Iterable<T>, List<T>

public interface NativeList<T>
extends List<T>

Interface for lists that use a native storage.
The only method added to this interface getPointer() returns a pointer to this list, which is does not necessarily point to the first element of the list (it depends on the list's implementation : for instance vector.getPointer() will return a pointer to the vector structure's pointer, while a list created out of a pointer through Pointer.asList() will return their storage pointer)

Author:
ochafik

Method Summary
 Pointer<?> getPointer()
          Returns a pointer to this list, which is does not necessarily point to the first element of the list.
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Method Detail

getPointer

Pointer<?> getPointer()
Returns a pointer to this list, which is does not necessarily point to the first element of the list.
The semantics of the returned pointer depends on the list's implementation : for instance vector.getPointer() will return a pointer to the vector structure's pointer, while a list created out of a pointer through Pointer.asList() will return their storage pointer)



Copyright © 2009-2012. All Rights Reserved.