1 23 24 package com.sun.enterprise.admin.common; 25 26 import java.io.Serializable ; 27 28 29 38 39 public class Param implements Serializable 40 { 41 public static long serialVersionUID = -6783475004108829145L; 42 43 public String mName; 44 public Serializable mValue; 45 46 52 public Param( String name, Serializable value ) 53 { 54 56 mName = name; 57 mValue = value; 58 } 59 60 63 public String toString() 64 { 65 if ( mValue != null ) 66 { 67 return( mName + ": " + mValue ); 68 } 69 return( mName + ": <null>" ); 70 } 71 72 85 86 public boolean equals(Object other) 87 { 88 boolean isSame = false; 89 if (other instanceof Param) 90 { 91 isSame = this.mName.equals(((Param)other).mName); 92 } 93 94 return isSame; 95 } 96 97 104 public int hashCode() 105 { 106 return (mName.hashCode ()); 107 } 108 } | Popular Tags |