/*
 * This file is part of Relaxe.
 * Copyright (c) 2014 Topi Nieminen
 * Author: Topi Nieminen <topi.nieminen@gmail.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License version 3
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Affero General Public License for more details.
 * You should have received a copy of the GNU Affero General Public License
 * along with this program; if not, see http://www.gnu.org/licenses or write to
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA, 02110-1301 USA.
 *
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License.
 */
package com.appspot.relaxe.model;

public class ConstantBooleanModel
	extends DefaultConstantValueModel<Boolean>
	implements BooleanModel
{
	public static final BooleanModel NULL = new ConstantBooleanModel(null);
	public static final BooleanModel TRUE = new ConstantBooleanModel(true);  
	public static final BooleanModel FALSE = new ConstantBooleanModel(false);
	
	/**
	 * No-argument constructor for GWT Serialization
	 */
	@SuppressWarnings("unused")
	private ConstantBooleanModel() {
	}
	
	public ConstantBooleanModel(boolean value) {
		this(Boolean.valueOf(value));		
	}
	
	public ConstantBooleanModel(Boolean value) {
		super(value);		
	}
	
	@Override
	public MutableBooleanModel asMutable() {
		return null;
	}
}

@@ -1197,32 +1197,40 @@
 ic static final 
+Constant
 BooleanModel NUL
@@ -1278,32 +1278,40 @@
 ic static final 
+Constant
 BooleanModel TRU
@@ -1369,16 +1369,24 @@
 c final 
+Constant
 BooleanM
@@ -1786,10 +1786,148 @@
 ull;%0A%09%7D%0A
+%09%0A%09public static ConstantBooleanModel of(boolean value) %7B%0A%09%09return value ? ConstantBooleanModel.TRUE : ConstantBooleanModel.FALSE;%09%09%09%09%0A%09%7D%0A
 %7D%0A

Add 'of' method