@Override public boolean equals(Object o) { return o instanceof InjectionPoint && member.equals(((InjectionPoint) o).member) && declaringType.equals(((InjectionPoint) o).declaringType); }
@Override public final boolean equals(Object o) { if (o == this) { return true; } if (!(o instanceof Key<?>)) { return false; } Key<?> other = (Key<?>) o; return annotationStrategy.equals(other.annotationStrategy) && typeLiteral.equals(other.typeLiteral); }
@Override public boolean equals(Object obj) { if (!(obj instanceof IndexedBinding)) { return false; } IndexedBinding o = (IndexedBinding) obj; return type == o.type && Objects.equal(scope, o.scope) && typeLiteral.equals(o.typeLiteral) && annotationType == o.annotationType && annotationName.equals(o.annotationName) && Objects.equal(extraEquality, o.extraEquality); }
@Override public Object next(final TypeLiteral<?> nexttype, final Object nextval) throws Throwable { if (cursor == parsers.size()) { return NO_PARSER; } if (!type.equals(nexttype)) { // reset cursor on type changes. cursor = 0; type = nexttype; } Parser next = parsers.get(cursor); cursor += 1; ParserBuilder current = builder; builder = new ParserBuilder(this, nexttype, wrap(nextval, builder.value)); Object result = next.parse(nexttype, this); if (result instanceof ParserBuilder) { // call a parse result = ((ParserBuilder) result).parse(); } builder = current; cursor -= 1; return result; }
Binding<?> binding = (Binding<?>) element; if (bindingSelection.matchesValueKey(binding.getKey()) && binding.getKey().getTypeLiteral().equals(bindingSelection.valueType)) {
private boolean keyMatches(Key<?> key) { return key.getTypeLiteral().equals(elementType) && key.getAnnotation() instanceof Element && ((Element) key.getAnnotation()).setName().equals(getSetName()) && ((Element) key.getAnnotation()).type() == MULTIBINDER; }
/** Returns true if the key indicates this is a value in the map. */ private boolean matchesValueKey(Key<?> key) { return key.getAnnotation() instanceof RealElement && ((RealElement) key.getAnnotation()).setName().equals(entrySetBinder.getSetName()) && ((RealElement) key.getAnnotation()).type() == MAPBINDER && ((RealElement) key.getAnnotation()).keyType().equals(keyType.toString()) && key.getTypeLiteral().equals(valueType); }
public boolean equals(Object o) { if (o == this) { return true; } if (!(o instanceof TypeLiteral<?>)) { return false; } TypeLiteral<?> other = (TypeLiteral<?>) o; return equals(type, other.type); }
@Override public final boolean equals(Object o) { if (o == this) { return true; } if (!(o instanceof Key<?>)) { return false; } Key<?> other = (Key<?>) o; return annotationStrategy.equals(other.annotationStrategy) && typeLiteral.equals(other.typeLiteral); }
@Override public final boolean equals(Object o) { if (o == this) { return true; } if (!(o instanceof Key<?>)) { return false; } Key<?> other = (Key<?>) o; return annotationStrategy.equals(other.annotationStrategy) && typeLiteral.equals(other.typeLiteral); }
@Override public boolean equals(Object o) { return o instanceof InjectionPoint && member.equals(((InjectionPoint) o).member) && declaringType.equals(((InjectionPoint) o).declaringType); }
@Override public final boolean equals(Object o) { if (o == this) { return true; } if (!(o instanceof Key<?>)) { return false; } Key<?> other = (Key<?>) o; return annotationStrategy.equals(other.annotationStrategy) && typeLiteral.equals(other.typeLiteral); }
@Override public boolean equals(Object o) { return o instanceof InjectionPoint && member.equals(((InjectionPoint) o).member) && declaringType.equals(((InjectionPoint) o).declaringType); }
@Override public boolean equals(Object obj) { if (!(obj instanceof IndexedBinding)) { return false; } IndexedBinding o = (IndexedBinding) obj; return type == o.type && Objects.equal(scope, o.scope) && typeLiteral.equals(o.typeLiteral) && annotationType == o.annotationType && annotationName.equals(o.annotationName) && Objects.equal(extraEquality, o.extraEquality); }
private boolean keyMatches(Key<?> key) { return key.getTypeLiteral().equals(elementType) && key.getAnnotation() instanceof Element && ((Element) key.getAnnotation()).setName().equals(setName); }
private boolean keyMatches(Key<?> key) { return key.getTypeLiteral().equals(elementType) && key.getAnnotation() instanceof Element && ((Element) key.getAnnotation()).setName().equals(getSetName()) && ((Element) key.getAnnotation()).type() == MULTIBINDER; }
/** Returns true if the key indicates this is a value in the map. */ private boolean matchesValueKey(Key<?> key) { return key.getAnnotation() instanceof RealElement && ((RealElement) key.getAnnotation()).setName().equals(entrySetBinder.getSetName()) && ((RealElement) key.getAnnotation()).type() == MAPBINDER && ((RealElement) key.getAnnotation()).keyType().equals(keyType.toString()) && key.getTypeLiteral().equals(valueType); }