|
JScience v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavolution.realtime.ObjectFactory<T>
javolution.realtime.RealtimeObject.Factory<Q>
org.jscience.physics.quantities.Quantity.Factory<Q>
public abstract static class Quantity.Factory<Q extends Quantity>
This inner-class represents the factory producing quantity instances.
Quantity instances.
| Constructor Summary | |
|---|---|
protected |
Quantity.Factory()
Default constructor. |
protected |
Quantity.Factory(Unit<Q> unit)
Creates a new factory and associates it to the specified unit. |
| Method Summary | |
|---|---|
Quantity.Factory<Q> |
useFor(Unit unit)
Maps the specified unit to this factory. |
| Methods inherited from class javolution.realtime.RealtimeObject.Factory |
|---|
newPool, object |
| Methods inherited from class javolution.realtime.ObjectFactory |
|---|
cleanup, create, currentPool, heapPool, newObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Quantity.Factory()
protected Quantity.Factory(Unit<Q> unit)
unit - the unit to which this factory is used for.useFor(Unit)| Method Detail |
|---|
public Quantity.Factory<Q> useFor(Unit unit)
unit - the unit mapped to this factory.
this
java.lang.IllegalArgumentException - if the unit is already
associated to another factory.
|
JScience v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||