com.google.protobuf.gwt.shared
Class AbstractMessage.Builder<BuilderType extends AbstractMessage.Builder>

java.lang.Object
  extended by com.google.protobuf.gwt.shared.AbstractMessage.Builder<BuilderType>
All Implemented Interfaces:
Message.Builder, Cloneable
Direct Known Subclasses:
GeneratedMessage.Builder
Enclosing class:
AbstractMessage

public abstract static class AbstractMessage.Builder<BuilderType extends AbstractMessage.Builder>
extends Object
implements Message.Builder

A partial implementation of the Message.Builder interface which implements as many methods of that interface as possible in terms of other methods.


Constructor Summary
AbstractMessage.Builder()
           
 
Method Summary
protected static
<T> void
addAll(Iterable<T> values, Collection<? super T> list)
          Adds the values to the list.
abstract  BuilderType clone()
          Clones the Builder.
protected static UninitializedMessageException newUninitializedMessageException(Message message)
          Construct an UninitializedMessageException reporting missing fields in the given message.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.protobuf.gwt.shared.Message.Builder
build, buildPartial, clear, getDefaultInstanceForType, isInitialized, mergeFrom, readFrom
 

Constructor Detail

AbstractMessage.Builder

public AbstractMessage.Builder()
Method Detail

clone

public abstract BuilderType clone()
Description copied from interface: Message.Builder
Clones the Builder.

Specified by:
clone in interface Message.Builder
Overrides:
clone in class Object
See Also:
Object.clone()

newUninitializedMessageException

protected static UninitializedMessageException newUninitializedMessageException(Message message)
Construct an UninitializedMessageException reporting missing fields in the given message.


addAll

protected static <T> void addAll(Iterable<T> values,
                                 Collection<? super T> list)
Adds the values to the list. This is a helper method used by generated code. Users should ignore it.

Throws:
NullPointerException - if any of the elements of values is null.


Copyright © 2014 InMobi. All rights reserved.