@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } final ExplicitTarget explicitTarget = (ExplicitTarget) obj; return endpoint.equals(explicitTarget.getEndpoint()); }
/** * Create a target from an explicit endpoint * @param endpoint The endpoint. * @return The target. */ public static Target from(final URI endpoint) { return new ExplicitTarget(endpoint); }
@Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final ExplicitTarget explicitTarget = (ExplicitTarget) o; return endpoint.equals(explicitTarget.getEndpoint()); }
/** * Create a target from an explicit endpoint. * * @param endpoint The endpoint. * * @return The target. */ public static Target from(final URI endpoint) { return new ExplicitTarget(endpoint); }