com.smartystreets.api.us_extract.Address Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smartystreets-java-sdk Show documentation
Show all versions of smartystreets-java-sdk Show documentation
A library to help Java developers easily access the SmartyStreets APIs.
package com.smartystreets.api.us_extract;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.smartystreets.api.us_street.Candidate;
import java.io.Serializable;
/**
* @see SmartyStreets US Extract API docs
*/
public class Address implements Serializable {
//region [ Fields ]
private String text;
private boolean verified;
private int line;
private int start;
private int end;
private Candidate[] candidates;
//endregion
//region [ Getters ]
public String getText() {
return text;
}
public boolean isVerified() {
return verified;
}
public int getLine() {
return line;
}
public int getStart() {
return start;
}
public int getEnd() {
return end;
}
@JsonProperty("api_output")
public Candidate[] getCandidates() {
return candidates;
}
public Candidate getCandidate(int index) {
return candidates[index];
}
//endregion
}