/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (this == o) { return true; } if (o instanceof Key) { Key other = (Key) o; return stream.equals(other.getStream()) && type.equals(other.getType()) && label.equals(other.getLabel()); } return false; }