|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object unit4.bucketLib.Bucket
public class Bucket
Constructor Summary | |
---|---|
Bucket(int capacity,
java.lang.String name)
|
Method Summary | |
---|---|
void |
empty()
|
void |
fill(double amountToFill)
|
int |
getCapacity()
|
double |
getCurrentAmount()
|
boolean |
isEmpty()
|
void |
pourInto(Bucket bucketInto)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Bucket(int capacity, java.lang.String name)
capacity
- קיבולת הדליname
- שם הדליMethod Detail |
---|
public double getCurrentAmount()
public int getCapacity()
public void pourInto(Bucket bucketInto)
bucketInto
- דלי היעד אליו יש לשפוך את המים מהדלי הנוכחיpublic void empty()
public void fill(double amountToFill)
amountToFill
- כמות המים שבה יש למלא את הדליpublic boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |