Package org.elasticsearch.common.inject.internal

Examples of org.elasticsearch.common.inject.internal.ToStringBuilder


            throws ErrorsException {
        return initializable.get(errors);
    }

    public String toString() {
        return new ToStringBuilder(ConstantFactory.class)
                .add("value", initializable)
                .toString();
    }
View Full Code Here


    public void applyTo(Binder binder) {
        throw new UnsupportedOperationException("This element represents a synthetic binding.");
    }

    @Override public String toString() {
        return new ToStringBuilder(ConstructorBinding.class)
                .add("key", getKey())
                .add("source", getSource())
                .add("scope", getScoping())
                .toString();
    }
View Full Code Here

            throws ErrorsException {
        return targetFactory.get(errors.withSource(targetKey), context, dependency);
    }

    @Override public String toString() {
        return new ToStringBuilder(FactoryProxy.class)
                .add("key", key)
                .add("provider", targetFactory)
                .toString();
    }
View Full Code Here

    @Override public final int hashCode() {
        return this.hashCode;
    }

    @Override public final String toString() {
        return new ToStringBuilder(Key.class)
                .add("type", typeLiteral)
                .add("annotation", annotationStrategy)
                .toString();
    }
View Full Code Here

            return hashCode;
        }

        @Override
        public String toString() {
            ToStringBuilder toStringBuilder = new ToStringBuilder(this.getClass())
                    .add("field", this.field());

            toStringBuilder.add("preservePositionIncrements", this.preservePositionIncrements);
            if (queryAnalyzer != null && queryAnalyzer.equals(indexAnalyzer)) {
                toStringBuilder.add("analyzer", this.queryAnalyzer);
            } else {
                if (queryAnalyzer != null) {
                    toStringBuilder.add("queryAnalyzer", queryAnalyzer);
                }
                if (indexAnalyzer != null) {
                    toStringBuilder.add("indexAnalyzer", indexAnalyzer);
                }
            }

            if (types.size() > 0) {
                toStringBuilder.add("types", Joiner.on("-").join(types));
            }

            return toStringBuilder.toString();
        }
View Full Code Here

        return this.hashCode;
    }

    @Override
    public final String toString() {
        return new ToStringBuilder(Key.class)
                .add("type", typeLiteral)
                .add("annotation", annotationStrategy)
                .toString();
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.common.inject.internal.ToStringBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.