@Override public int hashCode() { return Objects.hashCode(getKey(), getScoping(), targetKey); } }
@Override public String toString() { return MoreObjects.toStringHelper(LinkedKeyBinding.class) .add("key", getKey()) .add("source", getSource()) .add("scope", getScoping()) .add("target", targetKey) .toString(); }
@Override public boolean equals(Object obj) { if (obj instanceof LinkedBindingImpl) { LinkedBindingImpl<?> o = (LinkedBindingImpl<?>) obj; return getKey().equals(o.getKey()) && getScoping().equals(o.getScoping()) && Objects.equal(targetKey, o.targetKey); } else { return false; } }
@Override public BindingImpl<T> withKey(Key<T> key) { return new LinkedBindingImpl<T>(getSource(), key, getScoping(), targetKey); }
@Override public void applyTo(Binder binder) { getScoping().applyTo(binder.withSource(getSource()).bind(getKey()).to(getLinkedKey())); }
@Override public int hashCode() { return Objects.hashCode(getKey(), getScoping(), targetKey); } }
@Override public int hashCode() { return Objects.hashCode(getKey(), getScoping(), targetKey); } }
@Override public String toString() { return MoreObjects.toStringHelper(LinkedKeyBinding.class) .add("key", getKey()) .add("source", getSource()) .add("scope", getScoping()) .add("target", targetKey) .toString(); }
@Override public String toString() { return MoreObjects.toStringHelper(LinkedKeyBinding.class) .add("key", getKey()) .add("source", getSource()) .add("scope", getScoping()) .add("target", targetKey) .toString(); }
@Override public boolean equals(Object obj) { if (obj instanceof LinkedBindingImpl) { LinkedBindingImpl<?> o = (LinkedBindingImpl<?>) obj; return getKey().equals(o.getKey()) && getScoping().equals(o.getScoping()) && Objects.equal(targetKey, o.targetKey); } else { return false; } }
@Override public boolean equals(Object obj) { if (obj instanceof LinkedBindingImpl) { LinkedBindingImpl<?> o = (LinkedBindingImpl<?>) obj; return getKey().equals(o.getKey()) && getScoping().equals(o.getScoping()) && Objects.equal(targetKey, o.targetKey); } else { return false; } }
@Override public boolean equals(Object obj) { if (obj instanceof LinkedBindingImpl) { LinkedBindingImpl<?> o = (LinkedBindingImpl<?>) obj; return getKey().equals(o.getKey()) && getScoping().equals(o.getScoping()) && Objects.equal(targetKey, o.targetKey); } else { return false; } }
@Override public int hashCode() { return Objects.hashCode(getKey(), getScoping(), targetKey); } }
@Override public int hashCode() { return Objects.hashCode(getKey(), getScoping(), targetKey); } }
@Override public boolean equals(Object obj) { if(obj instanceof LinkedBindingImpl) { LinkedBindingImpl<?> o = (LinkedBindingImpl<?>)obj; return getKey().equals(o.getKey()) && getScoping().equals(o.getScoping()) && Objects.equal(targetKey, o.targetKey); } else { return false; } }
@Override public boolean equals(Object obj) { if(obj instanceof LinkedBindingImpl) { LinkedBindingImpl<?> o = (LinkedBindingImpl<?>)obj; return getKey().equals(o.getKey()) && getScoping().equals(o.getScoping()) && Objects.equal(targetKey, o.targetKey); } else { return false; } }
@Override public void applyTo(Binder binder) { getScoping().applyTo(binder.withSource(getSource()).bind(getKey()).to(getLinkedKey())); }
@Override public String toString() { return new ToStringBuilder(LinkedKeyBinding.class) .add("key", getKey()) .add("source", getSource()) .add("scope", getScoping()) .add("target", targetKey) .toString(); }
@Override public String toString() { return new ToStringBuilder(LinkedKeyBinding.class) .add("key", getKey()) .add("source", getSource()) .add("scope", getScoping()) .add("target", targetKey) .toString(); }
@Override public String toString() { return new ToStringBuilder(LinkedKeyBinding.class) .add("key", getKey()) .add("source", getSource()) .add("scope", getScoping()) .add("target", targetKey) .toString(); }