1 package com.dotmarketing.portlets.user.model; 2 3 import java.io.Serializable ; 4 5 6 public class UserPreference implements Serializable { 7 8 private static final long serialVersionUID = 1L; 9 10 11 private long id; 12 13 14 private String userId; 15 16 17 private String preference; 18 19 20 private String value; 21 22 23 public UserPreference(String userId, String preference, String value) { 24 this.userId = userId; 25 this.preference = preference; 26 this.value = value; 27 } 28 29 30 public UserPreference() { 31 } 32 33 34 public boolean equals(Object other) { 35 36 if (!(other instanceof UserPreference)) { 37 return false; 38 } 39 40 UserPreference castOther = ( UserPreference ) other; 41 42 return ((this.getUserId() == castOther.getUserId()) 43 && (this.getPreference() == castOther.getPreference()) 44 && (this.getValue() == castOther.getValue())); 45 } 46 47 51 public long getId() { 52 return id; 53 } 54 55 59 public String getPreference() { 60 return preference; 61 } 62 63 67 public String getUserId() { 68 return userId; 69 } 70 71 75 public String getValue() { 76 return value; 77 } 78 79 83 public void setId(long id) { 84 this.id = id; 85 } 86 87 91 public void setPreference(String preference) { 92 this.preference = preference; 93 } 94 95 99 public void setUserId(String userId) { 100 this.userId = userId; 101 } 102 103 107 public void setValue(String value) { 108 this.value = value; 109 } 110 111 } 112 | Popular Tags |