Lines Matching refs:Builder
58 * Create a {@link Builder} for a new {@link Voicemail} to be inserted.
62 public static Builder createForInsertion(long timestamp, String number) {
63 return new Builder().setNumber(number).setTimestamp(timestamp);
67 * Create a {@link Builder} for a {@link Voicemail} to be updated (or deleted).
72 public static Builder createForUpdate(long id, String sourceData) {
73 return new Builder().setId(id).setSourceData(sourceData);
77 * Builder pattern for creating a {@link Voicemail}. The builder must be created with the
82 public static class Builder {
95 /** You should use the correct factory method to construct a builder. */
96 private Builder() {
99 public Builder setNumber(String number) {
104 public Builder setTimestamp(long timestamp) {
109 public Builder setPhoneAccount(PhoneAccountHandle phoneAccount) {
114 public Builder setId(long id) {
119 public Builder setDuration(long duration) {
124 public Builder setSourcePackage(String sourcePackage) {
129 public Builder setSourceData(String sourceData) {
134 public Builder setUri(Uri uri) {
139 public Builder setIsRead(boolean isRead) {
144 public Builder setHasContent(boolean hasContent) {
149 public Builder setTranscription(String transcription) {