|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Order
A group of parcels in one order for storage in the warehouse.
Field Summary | |
boolean |
fragmented
Whether or not this lot is fragmented. |
int |
number
Unique number for this. |
Parcel[] |
parcels
Parcels in this. |
Constructor Summary | |
Order(int aNumber,
Parcel[] parcels)
Constructs an order with the given identifier and group of parcels. |
Method Summary | |
boolean |
contains(Parcel p)
Returns whether or not this contains the given parcel. |
protected void |
setParcels(Parcel[] p)
Sets the parcels for this to the given array. |
int |
size()
Returns the number of parcels in this. |
String |
toString()
Returns a string representation of this. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int number
public Parcel[] parcels
public boolean fragmented
Constructor Detail |
public Order(int aNumber, Parcel[] parcels)
aNumber
- number for the orderparcels
- parcels for the orderMethod Detail |
public int size()
protected void setParcels(Parcel[] p)
p
- the array of parcels for thispublic boolean contains(Parcel p)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |