// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
import dk.vajhoej.record.Alignment;
import dk.vajhoej.record.Endian;
import dk.vajhoej.record.FieldType;
import dk.vajhoej.record.Struct;
import dk.vajhoej.record.StructField;

@Struct(endianess=Endian.LITTLE, alignment=Alignment.ALIGN1)
public class OrderLineISAM {
    @StructField(n=0, type=FieldType.FIXSTR, length=32)
    private String item;
    @StructField(n=1, type=FieldType.INT4)
    private int qty;
    public OrderLineISAM() {
        this("", 0);
    }
    public OrderLineISAM(String item, int qty) {
        this.item = item;
        this.qty = qty;
    }
    public String getItem() {
        return item;
    }
    public void setItem(String item) {
        this.item = item;
    }
    public int getQty() {
        return qty;
    }
    public void setQty(int qty) {
        this.qty = qty;
    }
}
