KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thaiopensource > util > PropertyId


1 package com.thaiopensource.util;
2
3 public class PropertyId {
4   private final String JavaDoc name;
5   private final Class JavaDoc valueClass;
6
7   public PropertyId(String JavaDoc name, Class JavaDoc valueClass) {
8     if (name == null || valueClass == null)
9       throw new NullPointerException JavaDoc();
10     this.name = name;
11     this.valueClass = valueClass;
12   }
13
14   public Class JavaDoc getValueClass() {
15     return valueClass;
16   }
17
18   public final int hashCode() {
19     return super.hashCode();
20   }
21
22   public final boolean equals(Object JavaDoc obj) {
23     return super.equals(obj);
24   }
25
26   public String JavaDoc toString() {
27     return name;
28   }
29 }
30
Popular Tags