|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcodesimian.FreeLiquid
public class FreeLiquid
contains limited amounts of many types of Liquid.
Slowly distributes those liquids to whoever asks for them.
This class can not create Liquid. It can only give what it receives.
Only class Liquid can create Liquid.
A string explanation must be given for what the Liquid is for,
and if FreeLiquid does not accept your explanation, you will not receive the Liquid.
An example explanation for Liquid type "liquidChaos" is "create random name".
Method Summary | |
---|---|
static double |
howMuchLiquidDoYouHave(java.lang.String liquidType)
returns amount of liquid of a certain type that FreeLiquid has. |
static void |
receiveLiquid(Liquid anyLiquid)
FreeLiquid can only give (through requestLiquid functions) Liquids it has received |
static Liquid |
requestLiquid(java.lang.String liquidType,
double liquidAmount)
|
static Liquid |
requestLiquid(java.lang.String liquidType,
double liquidAmount,
java.lang.String whatWillYouDoWithTheLiquid)
throws NeedLiquid if you ask for a Liquid type it doesnt have, or if you ask for too much Liquid, or if you do not explain what you need it for well enough, or if it does not accept your purpose for the liquid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static double howMuchLiquidDoYouHave(java.lang.String liquidType)
public static Liquid requestLiquid(java.lang.String liquidType, double liquidAmount) throws NeedLiquid.Failed
NeedLiquid.Failed
public static Liquid requestLiquid(java.lang.String liquidType, double liquidAmount, java.lang.String whatWillYouDoWithTheLiquid) throws NeedLiquid.Failed
NeedLiquid.Failed
public static void receiveLiquid(Liquid anyLiquid)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |