1 16 package com.blandware.atleap.model.core; 17 18 36 public class GlobalProperty extends BaseObject { 37 38 40 43 protected String name; 44 47 protected String value; 48 51 protected Long version; 52 53 55 58 public GlobalProperty() { 59 } 60 61 66 public GlobalProperty(String name) { 67 this.name = name; 68 } 69 70 76 public GlobalProperty(String name, String value) { 77 this.name = name; 78 this.value = value; 79 } 80 81 83 90 public String getName() { 91 return name; 92 } 93 94 99 public void setName(String name) { 100 this.name = name; 101 } 102 103 109 public String getValue() { 110 return value; 111 } 112 113 118 public void setValue(String value) { 119 this.value = value; 120 } 121 122 128 public Long getVersion() { 129 return version; 130 } 131 132 137 public void setVersion(Long version) { 138 this.version = version; 139 } 140 141 public boolean equals(Object o) { 142 if ( this == o ) { 143 return true; 144 } 145 if ( !(o instanceof GlobalProperty) ) { 146 return false; 147 } 148 149 final GlobalProperty globalProperty = (GlobalProperty) o; 150 151 if ( name != null ? !name.equals(globalProperty.name) : globalProperty.name != null ) { 152 return false; 153 } 154 155 return true; 156 } 157 158 public int hashCode() { 159 return (name != null ? name.hashCode() : 0); 160 } 161 162 } 163 164 | Popular Tags |