public final class StateContexts extends Object
Modifier and Type | Method and Description |
---|---|
static StateContext |
newDefaultInstance()
Returns a new state context with the default table factory and the default (empty)
metatable accessor.
|
static StateContext |
newInstance(TableFactory tableFactory,
MetatableAccessor metatableAccessor)
Returns a new state context with the specified table factory
tableFactory
and the metatable accessor metatableAccessor . |
public static StateContext newInstance(TableFactory tableFactory, MetatableAccessor metatableAccessor)
tableFactory
and the metatable accessor metatableAccessor
.tableFactory
- table factory to be used by this state, must not be null
metatableAccessor
- metatable accessor to be used by this state, must not be
null
NullPointerException
- if tableFactory
or metatableAccessor
is null
public static StateContext newDefaultInstance()
Copyright © 2016. All rights reserved.