示例#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()));
 }
示例#2
0
 public boolean isAssignableFrom(ResourceType type) {
   return getTypeClass().isAssignableFrom(type.getTypeClass());
 }