1 package android.databinding.testapp.vo;
2 
3 import android.databinding.BaseObservable;
4 import android.databinding.Bindable;
5 import android.databinding.testapp.BR;
6 
7 public class User extends BaseObservable {
8     @Bindable
9     private User friend;
10     @Bindable
11     private String name;
12     @Bindable
13     private String fullName;
14 
getFriend()15     public User getFriend() {
16         return friend;
17     }
18 
setFriend(User friend)19     public void setFriend(User friend) {
20         this.friend = friend;
21         notifyPropertyChanged(BR.friend);
22     }
23 
getName()24     public String getName() {
25         return name;
26     }
27 
setName(String name)28     public void setName(String name) {
29         this.name = name;
30         notifyPropertyChanged(BR.name);
31     }
32 
getFullName()33     public String getFullName() {
34         return fullName;
35     }
36 
setFullName(String fullName)37     public void setFullName(String fullName) {
38         this.fullName = fullName;
39         notifyPropertyChanged(BR.fullName);
40     }
41 }
42