com.day.util
Class ListMap

java.lang.Object
  extended by com.day.util.ListMap

public class ListMap
extends Object

Simple implementation of a List which has elements also retreivable by a key.

Since:
antbear
Version:
$Revision: 1.7 $, $Date: 2004-08-22 06:56:09 +0200 (Sun, 22 Aug 2004) $
Author:
benp

Nested Class Summary
 class ListMap.Entry
           
 
Constructor Summary
ListMap()
           
ListMap(int size)
           
 
Method Summary
 void clear()
           
 ListMap.Entry get(int index)
           
 Object get(Object key)
           
 ListMap.Entry getLast()
           
 boolean isEmpty()
           
 Iterator iterator()
           
 int put(Object key, Object value)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListMap

public ListMap()

ListMap

public ListMap(int size)
Method Detail

size

public int size()

iterator

public Iterator iterator()

put

public int put(Object key,
               Object value)

get

public Object get(Object key)

get

public ListMap.Entry get(int index)

isEmpty

public boolean isEmpty()

clear

public void clear()

toString

public String toString()
Overrides:
toString in class Object

getLast

public ListMap.Entry getLast()


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.