1 24 25 package org.objectweb.perseus; 26 27 import java.io.Serializable ; 28 29 public class PString implements Serializable { 30 31 public String s = ""; 32 private int oid; 33 34 public String toString() { 35 return s; 36 } 37 38 public PString() { 39 oid = OIDFactory.newOID(); 40 } 41 42 public PString(String str) { 43 s = str; 44 } 45 46 public PString(PString po) { 47 s = po.s; 48 } 49 50 public void set(PString ps) { 51 s = ps.s; 52 } 53 public boolean equals(Object o) { 54 return (oid == ((PString) o).oid); 55 } 56 public int hashCode() { 57 return oid; 58 } 59 60 } 61 | Popular Tags |