public class ObjectBuilder<T> extends Object implements IObjectBuilder<T>
Constructor and Description |
---|
ObjectBuilder() |
Modifier and Type | Method and Description |
---|---|
ObjectBuilder<T> |
addOption(ObjectOpenOptions option)
Add option to object builder.
|
T |
open()
Open an Object.
|
ObjectBuilder<T> |
setArguments(Object... arguments) |
ObjectBuilder<T> |
setArgumentsArray(Object[] arguments) |
<R> ObjectBuilder<R> |
setType(Class<R> type)
Set the type of this object, using a class.
|
<R> ObjectBuilder<R> |
setTypeToken(com.google.common.reflect.TypeToken<R> typeToken)
Set the type of this object, using a type token.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setStreamID, setStreamName
public <R> ObjectBuilder<R> setType(Class<R> type)
IObjectBuilder
setType
in interface IObjectBuilder<T>
R
- The type of the class.type
- The class of the object.public <R> ObjectBuilder<R> setTypeToken(com.google.common.reflect.TypeToken<R> typeToken)
IObjectBuilder
setTypeToken
in interface IObjectBuilder<T>
R
- The type of the type token.typeToken
- The type token to use to generate the type.public ObjectBuilder<T> addOption(ObjectOpenOptions option)
option
- object builder open option (e.g., No-Cache).public ObjectBuilder<T> setArguments(Object... arguments)
public ObjectBuilder<T> setArgumentsArray(Object[] arguments)
public T open()
open
in interface IObjectBuilder<T>
Copyright © 2019 CorfuDB. All rights reserved.