Treat Parameter as Sequence

Sometimes you may want to handle one or more items passed to a method.

Usually method overloading to handle each specific case is sufficient. But here is an example for treating a parameter as a sequence of items, even if only one item was passed.

© 2003-2009 Codehaus