• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 package ohos.devtools.views.user;
17 
18 import model.AbstractSdk;
19 
20 import java.util.Optional;
21 
22 /**
23  * Sdk Manager
24  *
25  * @since 2021/11/22
26  */
27 public class UserManager {
28     private static volatile UserManager userManager;
29 
UserManager()30     private UserManager() {
31     }
32 
33     /**
34      * Get an instance
35      *
36      * @return UserDataDao
37      */
getInstance()38     public static UserManager getInstance() {
39         if (userManager == null) {
40             synchronized (UserManager.class) {
41                 if (userManager == null) {
42                     userManager = new UserManager();
43                 }
44             }
45         }
46         return userManager;
47     }
48 
49     /**
50      * getSdkImpl
51      *
52      * @return Optional<AbstractSdk>
53      */
getSdkImpl()54     public Optional<AbstractSdk> getSdkImpl() {
55         return Optional.ofNullable(null);
56     }
57 }
58