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