@Override
        public boolean equals(final Object obj) {
            if (this == obj)
                return true;
            if (obj == null)
                return false;
            if (getClass() != obj.getClass())
                return false;
            final AssignedTask other = (AssignedTask) obj;
            return this.id.equals(other.id()) && this.taskType == other.taskType;
        }
@return the type of the {@code AssignedTask}
streams/src/main/java/org/apache/kafka/streams/processor/assignment/KafkaStreamsAssignment.java