/*
   Copyright 2015 Jianan - qinxiandiqi@foxmail.com

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 */
package com.qinxiandiqi.easyandroid.container;

import com.qinxiandiqi.easyandroid.container.interfaces.IModel;
import com.qinxiandiqi.easyandroid.container.interfaces.IModelManagerService;

/**
 * Created by Jianan on 2015/12/10.
 */
public class EasyModelManager implements IModelManagerService{

   @Override
   public <T> T getValue(int key, Class<T> type) {
      return null;
   }

   @Override
   public <T> T saveValue(int key, T value) {
      return null;
   }

   @Override
   public <T> T getGlobalValue(int key, Class<T> type) {
      return null;
   }

   @Override
   public <T> T saveGlobalValue(int key, T value) {
      return null;
   }

   @Override
   public boolean putModel(int type, IModel model) {
      return false;
   }

   @Override
   public IModel getModel() {
      return null;
   }

   @Override
   public boolean putModel(IModel model) {
      return false;
   }
}

/*
   Copyright 2015 Jianan - qinxiandiqi@foxmail.com

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 */
package com.qinxiandiqi.easyandroid.container;

import com.qinxiandiqi.easyandroid.container.interfaces.IModel;
import com.qinxiandiqi.easyandroid.container.interfaces.IModelManagerService;

/**
 * Created by Jianan on 2015/12/10.
 */
public class EasyModelManager implements IModelManagerService{

   private static volatile EasyModelManager sEasyModelManager;

   public static final EasyModelManager getInstance(){
      if(sEasyModelManager == null){
         sEasyModelManager = new EasyModelManager();
      }
      return sEasyModelManager;
   }

   private EasyModelManager(){}

   @Override
   public <T> T getValue(int key, Class<T> type) {
      return null;
   }

   @Override
   public <T> T saveValue(int key, T value) {
      return null;
   }

   @Override
   public <T> T getGlobalValue(int key, Class<T> type) {
      return null;
   }

   @Override
   public <T> T saveGlobalValue(int key, T value) {
      return null;
   }

   @Override
   public boolean putModel(int type, IModel model) {
      return false;
   }

   @Override
   public IModel getModel() {
      return null;
   }

   @Override
   public boolean putModel(IModel model) {
      return false;
   }
}

update EasyModelManager to single instance.