Beispiel #1
0
 public boolean equals(Object o) {
   if (!(o instanceof ResourceType)) {
     return false;
   }
   ResourceType rt = (ResourceType) o;
   return (type.equals(rt.getTypeClass()) && getTypeName().equals(rt.getTypeName()));
 }
Beispiel #2
0
 public boolean isAssignableFrom(ResourceType type) {
   return getTypeClass().isAssignableFrom(type.getTypeClass());
 }