railo.commons.collections
Class LongKeyList

java.lang.Object
  extended by railo.commons.collections.LongKeyList

public final class LongKeyList
extends Object

class to fill objects, objetcs will be sorted by long key.


Constructor Summary
LongKeyList()
          constructor of the class
 
Method Summary
 void add(long key, Object value)
          adds a new object to the stack
 Object get(long key)
           
 Object pop()
           
 Object shift()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongKeyList

public LongKeyList()
constructor of the class

Method Detail

add

public void add(long key,
                Object value)
adds a new object to the stack

Parameters:
key - key as long
value - object to fill

shift

public Object shift()
Returns:
returns the first object in stack

pop

public Object pop()
Returns:
returns the last object in Stack

get

public Object get(long key)
Parameters:
key - key to value
Returns:
returns the value to the key


Copyright © 2012 Railo