Okay, rather than an if/switch statement with 4,000+ possible results, I recommend some kind of an event-driven system that responds appropriately to the 'result' events as they occur. An EventBus...
Type: Posts; User: GregBrannon
Okay, rather than an if/switch statement with 4,000+ possible results, I recommend some kind of an event-driven system that responds appropriately to the 'result' events as they occur. An EventBus...
I'm not sure I understand, but why can't you just use a switch or an 'if' statement to create the object based on 'result'?
if ( result.equals( "car" )
{
new Car();
}
Can you create a...