@@ -0,0 +1,1424 @@
+/**%0A * Copyright 2010-2016 Ralph Schaer %3Cralphschaer@gmail.com%3E%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *   http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage ch.ralscha.extdirectspring.bean;%0A%0Aimport org.immutables.value.Value;%0Aimport org.immutables.value.Value.Style.ImplementationVisibility;%0A%0Aimport com.fasterxml.jackson.databind.annotation.JsonSerialize;%0A%0A/**%0A * Represents the result of a FORM_LOAD method call.%0A */%0A@JsonSerialize(as = ImmutableEdFormLoadResult.class)%0A@Value.Style(visibility = ImplementationVisibility.PACKAGE)%0A@Value.Immutable%0Apublic abstract class EdFormLoadResult extends JsonViewHint %7B%0A%0A%09@Value.Parameter%0A%09@Nullable%0A%09public abstract Object data();%0A%0A%09@Value.Parameter%0A%09public abstract boolean success();%0A%0A%09public static EdFormLoadResult success(Object data) %7B%0A%09%09return ImmutableEdFormLoadResult.of(data, true);%0A%09%7D%0A%0A%09public static EdFormLoadResult fail(Object data) %7B%0A%09%09return ImmutableEdFormLoadResult.of(data, false);%0A%09%7D%0A%0A%7D%0A

Create immutable for FormLoadResult