com.emarsys.ecommon.builder.time
Class MockTimeBuilder

java.lang.Object
  extended by com.emarsys.ecommon.builder.time.MockTimeBuilder
All Implemented Interfaces:
Builder<Time>

public class MockTimeBuilder
extends java.lang.Object
implements Builder<Time>

A Builder for Time instances that returns or "creates" only the MockTime instance on every call.

Author:
Michael "kULO" Kulovits

Constructor Summary
MockTimeBuilder()
           
 
Method Summary
 Time newInstance()
          Returns the mocktime instance on every call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockTimeBuilder

public MockTimeBuilder()
Method Detail

newInstance

public Time newInstance()
Returns the mocktime instance on every call.

Specified by:
newInstance in interface Builder<Time>
Returns:
a new T instance, never null.
See Also:
Builder.newInstance()


Copyright © 2010 emarsys AG. All Rights Reserved.