org.exolab.castor.util

Class OrderedMap


public class OrderedMap
extends java.lang.Object

A simple String to Object mapping which preserves order
Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:06 $
Author:
Keith Visco

Constructor Summary

OrderedMap()
Creates a new OrderedMap
OrderedMap(int size)
Creates a new OrderedMap with the given size

Method Summary

Object
get(String name)
Object
get(int i)
String
getNameByObject(Object obj)
Vector
getNames()
Vector
getObjects()
int
indexOf(String name)
Returns the index of the object with mapped to the given name
void
put(String name, Object obj)
int
size()

Constructor Details

OrderedMap

public OrderedMap()
Creates a new OrderedMap

OrderedMap

public OrderedMap(int size)
Creates a new OrderedMap with the given size

Method Details

get

public Object get(String name)

get

public Object get(int i)
            throws IndexOutOfBoundsException

getNameByObject

public String getNameByObject(Object obj)

getNames

public Vector getNames()

getObjects

public Vector getObjects()

indexOf

public int indexOf(String name)
Returns the index of the object with mapped to the given name

put

public void put(String name,
                Object obj)

size

public int size()

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com