@Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    SamzaResource resource = (SamzaResource) o;

    if (numCores != resource.numCores) return false;
    if (memoryMb != resource.memoryMb) return false;
    return containerId.equals(resource.containerId);

  }
Specification of a Samza Resource. A resource is identified by a unique resource ID.
A resource is currently comprised of CPUs and Memory resources on a host.
samza-core/src/main/java/org/apache/samza/clustermanager/SamzaResource.java