bsharp.enumerations
Class Enumerations

java.lang.Object
  extended by bsharp.enumerations.Enumerations

public class Enumerations
extends java.lang.Object

A static class with helpful methods to manipulating Enumerations;

Author:
brandon@sharpideas.ca

Constructor Summary
Enumerations()
           
 
Method Summary
static java.util.Enumeration makeEnumeration(java.lang.Object obj)
          Creates an enumeration out of an array.
static java.util.Enumeration makeEnumeration(java.util.Vector v)
          Creates an enumeration out of Vector.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Enumerations

public Enumerations()
Method Detail

makeEnumeration

public static java.util.Enumeration makeEnumeration(java.lang.Object obj)
Creates an enumeration out of an array.

Returns:
an Enumeration create from the given array.
Throws:
java.lang.IllegalArgumentException - if the Object is not an array.

makeEnumeration

public static java.util.Enumeration makeEnumeration(java.util.Vector v)
Creates an enumeration out of Vector. (copies vector to array first.)

Returns:
an Enumeration create from the given array.