Evaluating Software Design Patterns
— the "Gang of Four" patterns implemented in Java 6

dk.rode.thesis.state
Class StepSequence.Factory

java.lang.Object
  extended by dk.rode.thesis.state.StepSequence.Factory
Enclosing interface:
StepSequence

public static final class StepSequence.Factory
extends Object

A factory to create StepSequence instances.

Author:
Gunni Rode / rode.dk

Field Summary
private static ProxyFactory factory
          The proxy factory used to create the dynamic proxies.
 
Constructor Summary
private StepSequence.Factory()
          Private off-limit constructor.
 
Method Summary
static StepSequence create(int step, int value)
          Creates a new step sequence using a step of step and starting with the initial value supplied as value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

private static final ProxyFactory factory
The proxy factory used to create the dynamic proxies.

Never null.

Constructor Detail

StepSequence.Factory

private StepSequence.Factory()
Private off-limit constructor.

Method Detail

create

public static final StepSequence create(int step,
                                        int value)
Creates a new step sequence using a step of step and starting with the initial value supplied as value.

Parameters:
step - The step; cannot be zero.
value - The initial sequence value.
Returns:
A new StepSequence instance; never null.
Throws:
IllegalArgumentException - If step is zero.

Gunni Rode / rode.dk

Feel free to use and/or modify the Java 6 source code developed for this thesis AT YOUR OWN RISK, but note that the source code comes WITHOUT ANY — and I do mean WITHOUT ANY — form of warranty WHAT SO EVER!

The original thesis and source code are available at rode.dk/thesis.