/*
   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;
   }
}

@@ -900,16 +900,304 @@
 rvice%7B%0A%0A
+   private static volatile EasyModelManager sEasyModelManager;%0A%0A   public static final EasyModelManager getInstance()%7B%0A      if(sEasyModelManager == null)%7B%0A         sEasyModelManager = new EasyModelManager();%0A      %7D%0A      return sEasyModelManager;%0A   %7D%0A%0A   private EasyModelManager()%7B%7D%0A%0A
    @Over

update EasyModelManager to single instance.