codesimian
Class NeedLiquids

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by codesimian.NeedLiquid
                  extended by codesimian.NeedLiquids
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable
Direct Known Subclasses:
NeedLiquids.Failed

public class NeedLiquids
extends NeedLiquid

as a NeedLiquid, my double and String are from the the first NeedLiquid in the array. Array must be at least size 1. TODO: merge NeedLiquid, NeedLiquid.Failed, NeedLiquids, and NeedLiquids.Failed into 1 class: NeedLiquids, which should extend a new class: Need

See Also:
Serialized Form

Nested Class Summary
static class NeedLiquids.Failed
          Same as NeedLiquids except continueExecution is null.
 
Field Summary
 
Fields inherited from class codesimian.NeedLiquid
D, name
 
Constructor Summary
NeedLiquids(NeedLiquid[] needLiquids, java.lang.Runnable continueExecution)
           
 
Method Summary
 NeedLiquid[] array()
           
 int liquidCount()
           
 
Methods inherited from class codesimian.NeedLiquid
canContinue, hasLiquid, run, takeLiquid, takeLiquidThenRun
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NeedLiquids

public NeedLiquids(NeedLiquid[] needLiquids,
                   java.lang.Runnable continueExecution)
Method Detail

array

public NeedLiquid[] array()

liquidCount

public int liquidCount()
Overrides:
liquidCount in class NeedLiquid