01: /*
02: * @(#)QuantityFactory.java 1.2 04/12/06
03: *
04: * Copyright (c) 1997-2003 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * See the file "LICENSE.txt" for information on usage and redistribution
07: * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
08: */
09: package pnuts.lang;
10:
11: /**
12: * A factory class for unit numbers. See <a
13: * href="http://pnuts.org/doc/lang.html#units">The language specification </a>
14: * for details.
15: *
16: * @version 1.1
17: */
18: public interface QuantityFactory {
19:
20: /**
21: * Defines how to create an object that represents a kind of quantity.
22: *
23: * @param number
24: * the amount
25: * @param unit
26: * the unit
27: * @return the quantity
28: */
29: Object make(Number number, String unit);
30: }
|