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