@Override
  public boolean equals(Object o) {
    boolean result =false;
    if(this == o) result = true;
    if(o instanceof BaseResourceDefinition){
        BaseResourceDefinition other = (BaseResourceDefinition) o;
        if(m_type == other.m_type )
            result = true;
    }
    return result;
  }
Constructor.

@param resourceType the resource type
@param subTypes     the sub-resource types
@param directives   a map of directives for request types for this resource
ambari-server/src/main/java/org/apache/ambari/server/api/resources/BaseResourceDefinition.java