Debian Codegraph @

integration-tests/MultiModuleTestApp/app/src/main/java/android/databinding/multimoduletestapp/ObservableInMainApp.java

raw
1 /*
2 * Copyright (C) 2015 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package android.databinding.multimoduletestapp;
18
19 import android.databinding.Bindable;
20
21 import android.databinding.BaseObservable;
22 import android.databinding.multimoduletestapp.BR;
23
24 public class ObservableInMainApp extends BaseObservable {
25 @Bindable
26 private String mAppField1;
27 @Bindable
28 private int mAppField2;
29 @Bindable
30 private int mSharedField;
31
32 public String getAppField1() {
33 return mAppField1;
34 }
35
36 public void setAppField1(String appField1) {
37 mAppField1 = appField1;
38 notifyPropertyChanged(BR.appField1);
39 }
40
41 public int getAppField2() {
42 return mAppField2;
43 }
44
45 public void setAppField2(int appField2) {
46 mAppField2 = appField2;
47 notifyPropertyChanged(BR.appField2);
48 }
49
50 public int getSharedField() {
51 return mSharedField;
52 }
53
54 public void setSharedField(int sharedField) {
55 mSharedField = sharedField;
56 notifyPropertyChanged(BR.sharedField);
57 }
58 }