T
- The type of the object to build.
Created by mwei on 11/12/16.public interface IObjectBuilder<T>
Modifier and Type | Method and Description |
---|---|
T |
open()
Open the object, using the parameters given to the builder.
|
IObjectBuilder<T> |
setStreamID(UUID streamID)
Set the stream ID of the object.
|
IObjectBuilder<T> |
setStreamName(String streamName)
Set the name of the stream for this object.
|
<R> IObjectBuilder<R> |
setType(Class<R> type)
Set the type of this object, using a class.
|
<R> IObjectBuilder<R> |
setTypeToken(com.google.common.reflect.TypeToken<R> typeToken)
Set the type of this object, using a type token.
|
IObjectBuilder<T> setStreamID(UUID streamID)
streamID
- The stream ID of the object.IObjectBuilder<T> setStreamName(String streamName)
streamName
- The stream name for this object.<R> IObjectBuilder<R> setTypeToken(com.google.common.reflect.TypeToken<R> typeToken)
R
- The type of the type token.typeToken
- The type token to use to generate the type.<R> IObjectBuilder<R> setType(Class<R> type)
R
- The type of the class.type
- The class of the object.T open()
Copyright © 2019 CorfuDB. All rights reserved.