private FieldSignature( String name, Neo4jTypes.AnyType type, DefaultParameterValue defaultValue, boolean deprecated ) { this.name = requireNonNull( name, "name" ); this.type = requireNonNull( type, "type" ); this.defaultValue = defaultValue; this.deprecated = deprecated; if ( defaultValue != null ) { if ( !type.equals( defaultValue.neo4jType() ) ) { throw new IllegalArgumentException( String.format( "Default value does not have a valid type, field type was %s, but value type was %s.", type.toString(), defaultValue.neo4jType().toString() ) ); } } }
private FieldSignature( String name, Neo4jTypes.AnyType type, DefaultParameterValue defaultValue, boolean deprecated ) { this.name = requireNonNull( name, "name" ); this.type = requireNonNull( type, "type" ); this.defaultValue = defaultValue; this.deprecated = deprecated; if ( defaultValue != null ) { if ( !type.equals( defaultValue.neo4jType() ) ) { throw new IllegalArgumentException( String.format( "Default value does not have a valid type, field type was %s, but value type was %s.", type.toString(), defaultValue.neo4jType().toString() ) ); } } }
@Override public String toString() { String strInSig = inputSignature == null ? "..." : Iterables.toString( inputSignature, ", " ); String strOutSig = type == null ? "..." : type.toString(); return String.format( "%s(%s) :: (%s)", name, strInSig, strOutSig ); }
@Override public String toString() { String strInSig = inputSignature == null ? "..." : Iterables.toString( inputSignature, ", " ); String strOutSig = type == null ? "..." : type.toString(); return String.format( "%s(%s) :: (%s)", name, strInSig, strOutSig ); }