story.dbcore.misc
Class ImmutableVector

java.lang.Object
  extended by story.dbcore.misc.ImmutableVector

public class ImmutableVector
extends java.lang.Object

A read-only Vector. Or, more accurately, a read-only interface for a Vector. The subject Vector is passed by reference so be careful not to change it elsewhere.


Constructor Summary
ImmutableVector(java.util.Vector vector)
           
 
Method Summary
 boolean contains(java.lang.Object element)
           
 java.util.Enumeration elements()
           
 java.lang.Object get(int index)
           
 java.util.Vector getMutableCopy()
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableVector

public ImmutableVector(java.util.Vector vector)
Method Detail

elements

public java.util.Enumeration elements()

size

public int size()

get

public java.lang.Object get(int index)

contains

public boolean contains(java.lang.Object element)

getMutableCopy

public java.util.Vector getMutableCopy()


Copyright © 2011 David K. Elson. All Rights Reserved.