Write a custom BaseAdapter implementation that implements an indexed set.