fix some compilation warnings
[transportpce.git] / renderer / src / main / java / org / opendaylight / transportpce / renderer / provisiondevice / OLMRenderingResult.java
1 /*
2  * Copyright © 2017 AT&T and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.transportpce.renderer.provisiondevice;
9
10 import org.opendaylight.transportpce.common.OperationResult;
11
12 public final class OLMRenderingResult extends OperationResult {
13
14     private OLMRenderingResult(boolean success, String message) {
15         super(success, message);
16     }
17
18     public static OLMRenderingResult failed(String message) {
19         return new OLMRenderingResult(false, message);
20     }
21
22     public static OLMRenderingResult ok() {
23         return new OLMRenderingResult(true, "");
24     }
25
26 }