Anton Tagunov wrote:
Hello Berin!


    /**
+     * Get the Command Queue so that you can enqueue and dequeue commands.
+     *
+     * @return the Sink that feeds the CommandManager
+     */
+    public final Queue getCommandQueue()
+    {
+        return m_queue;
+    }


BL> Already has a getCommandSink() which is the real contract.


But we need a Queue! We do coerce like (Queue) after we invoke getCommandSink(), so I see two good ways out now:

a) change the return type (or introduce a new method, which
   seemed less desctructive to me)

b) change our requirements and treat what we get only as
   a Sink, not as a Queue

Which is what we really need?

As I mentioned earlier, the Sink is the real contract. It should be a Sink. Now, the method does return a Queue (which includes both a Sink and a Source). For the time being it works, but if we get more strict then it won't.


-- "You know the world is going crazy when the best rapper is a white guy, the best golfer is a black guy, The Swiss hold the America's Cup, France is accusing the US of arrogance, and Germany doesn't want to go to war. And the 3 most powerful men in America are named 'Bush', 'Dick', and 'Colon' (sic)".

-----Chris Rock


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to