"Variants" in Java
I'm wondering if Java offers a good way to simulate the Visual Basic / COM
Variant type. I don't suppose it is possible to have multiple return types
from a single named function, is it.
I've got some Visual Basic architecture that uses variants as return types,
typically for database columns in generic database classes where you don't
know ahead of time whether the column will contain a string, an integer
type, a date, etc.
President, SDA Consulting, Inc.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL