Merge "Bug 9092: revert to org.json temporarily"
[netconf.git] / restconf / sal-rest-connector / src / main / java / org / opendaylight / restconf / restful / utils / FutureDataFactory.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. 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.restconf.restful.utils;
9
10 class FutureDataFactory<T> {
11
12     protected T result;
13     private boolean statusFail = false;
14
15     void setResult(final T result) {
16         this.result = result;
17     }
18
19     void setFailureStatus() {
20         this.statusFail = true;
21     }
22
23     boolean getFailureStatus() {
24         return statusFail;
25     }
26
27 }