public class ConversationHolderImpl extends Object implements ConversationHolder
Modifier and Type | Field and Description |
---|---|
protected Conversation |
conversation |
protected boolean |
newConversation |
Modifier | Constructor and Description |
---|---|
protected |
ConversationHolderImpl(Conversation conversation,
boolean newConversation) |
Modifier and Type | Method and Description |
---|---|
static ConversationHolderImpl |
forNewConversation(Conversation conversation) |
static ConversationHolderImpl |
forReusedConversation(Conversation conversation) |
Conversation |
getConversation()
Returns the underlying conversation this holder is built with.
|
boolean |
isNewConversation()
If this conversation was newly created, this method returns
true , for an existing one, it will return false . |
protected final Conversation conversation
protected final boolean newConversation
protected ConversationHolderImpl(Conversation conversation, boolean newConversation)
public Conversation getConversation()
ConversationHolder
getConversation
in interface ConversationHolder
public boolean isNewConversation()
ConversationHolder
true
, for an existing one, it will return false
.isNewConversation
in interface ConversationHolder
true
for a newly created conversation, false
otherwisepublic static ConversationHolderImpl forNewConversation(Conversation conversation)
public static ConversationHolderImpl forReusedConversation(Conversation conversation)
Copyright © 2019. All rights reserved.