net.sourceforge.cilib.type.types
Class BoundsFactory
java.lang.Object
net.sourceforge.cilib.type.types.BoundsFactory
public class BoundsFactory
- extends Object
This class represents the bounds information for all Numeric types in
CIlib. This implemetnation is done by using the Flyweight design pattern.
- Author:
- gpampara
|
Method Summary |
static Bounds |
create(Bounds bounds)
Create a new Bounds object, or alternatively return a precreated instance. |
static Bounds |
create(double lowerBound,
double upperBound)
Create a new Bounds instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoundsFactory
public BoundsFactory()
create
public static Bounds create(Bounds bounds)
- Create a new
Bounds object, or alternatively return a precreated instance.
- Parameters:
bounds - The bounds object to base the creation off.
- Returns:
- The common
Bounds instance.
create
public static Bounds create(double lowerBound,
double upperBound)
- Create a new
Bounds instance. The created instance is based
on the provided lowerBound and upperBound values.
- Parameters:
lowerBound - The lower bound of the bound definition.upperBound - The upper bound of the bound definition.
- Returns:
- The newly created or previously created
Bounds instance.
Copyright © 2009 CIRG. All Rights Reserved.