public class Bag7NShapeSource extends Object implements ShapeSource, Cloneable
Modifier and Type | Field and Description |
---|---|
protected List<ShapeType> |
bag |
static EngineFactory<ShapeSource> |
FACTORY |
protected int |
n |
protected SecureRandom |
random |
Constructor and Description |
---|
Bag7NShapeSource() |
Bag7NShapeSource(int n) |
public static final EngineFactory<ShapeSource> FACTORY
protected int n
protected SecureRandom random
public Bag7NShapeSource()
public Bag7NShapeSource(int n)
public ShapeType next(Engine engine)
next
in interface ShapeSource
public ShapeType[] getBag()
getBag
in interface ShapeSource
public boolean remove(ShapeType type)
remove
in interface ShapeSource
Copyright © 2015. All rights reserved.