|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.emarsys.ecommon.builder.time.TimeBuilder
public class TimeBuilder
The default Builder
for Time
instances.
Constructor Summary | |
---|---|
TimeBuilder()
|
Method Summary | |
---|---|
static Time |
getInstance()
Creates a new Time instance by delegating
to the Builder registered with Time
in Builders . |
Time |
newInstance()
Creates a Time instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeBuilder()
Method Detail |
---|
public static Time getInstance()
Creates a new Time
instance by delegating
to the Builder
registered with Time
in Builders
.
Note that this method needs not to use
newInstance()
(this is only the default case)
but may call whatever Time
-Builder
that is
set
in the registry.
public Time newInstance()
Creates a Time
instance.
The SystemTime
singleton instance will be returned on
every call.
newInstance
in interface Builder<Time>
null
.Builder.newInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |