1 18 package org.objectweb.speedo.pobjects.userid; 19 20 24 public class IntUserId { 25 private int name; 26 private String f1; 27 28 public IntUserId() { 29 } 30 31 public IntUserId(int name, String f1) { 32 this.name = name; 33 this.f1 = f1; 34 } 35 36 public int getName() { 37 return name; 38 } 39 40 public void setName(int name) { 41 this.name = name; 42 } 43 44 public String getF1() { 45 return f1; 46 } 47 48 public void setF1(String f1) { 49 this.f1 = f1; 50 } 51 52 public int hashCode() { 53 return name; 54 } 55 56 public boolean equals(Object obj) { 57 return (obj instanceof IntUserId) && name == ((IntUserId) obj).name; 58 } 59 60 public String toString() { 61 return super.toString() + " / name=" + name + " / f1=" + f1; 62 } 63 } 64 | Popular Tags |