Code example for List

Methods: addAll

0
		public Builder addModelClasses(Class<? extends Model>... modelClasses) {
			if (mModelClasses == null) {
				mModelClasses = new ArrayList<Class<? extends Model>>();
			} 
 
			mModelClasses.addAll(Arrays.asList(modelClasses));
			return this;
		} 
 
		public Builder setModelClasses(Class<? extends Model>... modelClasses) {
			mModelClasses = Arrays.asList(modelClasses);
			return this;
		} 
 
		public Builder addTypeSerializer(Class<? extends TypeSerializer> typeSerializer) {
			if (mTypeSerializers == null) {
				mTypeSerializers = new ArrayList<Class<? extends TypeSerializer>>();
			} 
 
			mTypeSerializers.add(typeSerializer);
			return this;