private MessageEntry findMessageEntry(String nonce) { for (MessageEntry entry : messageEntries) { if (StringUtils.equal(entry.nonce, nonce)) { return entry; } } return null; }
public void setOsName(String osName) { if (!StringUtils.equal(this.osName, osName)) { this.osName = osName; notifyDataChanged(); } }
public void setAdvertiserId(String advertiserId) { if (!StringUtils.equal(this.advertiserId, advertiserId)) { this.advertiserId = advertiserId; notifyDataChanged(); } }
public void setCountry(String country) { if (!StringUtils.equal(this.country, country)) { this.country = country; notifyDataChanged(); } }
public void setBirthday(String birthday) { if (!StringUtils.equal(this.birthday, birthday)) { this.birthday = birthday; notifyDataChanged(); } }
public void setMessageCenterPendingMessage(String messageCenterPendingMessage) { if (!StringUtils.equal(this.messageCenterPendingMessage, messageCenterPendingMessage)) { this.messageCenterPendingMessage = messageCenterPendingMessage; notifyDataChanged(); } }
/** * Returns a request with a specified tag or <code>null</code> is not found */ public synchronized HttpRequest findRequest(String tag) { for (HttpRequest request : activeRequests) { if (StringUtils.equal(request.getTag(), tag)) { return request; } } return null; }
public void setModel(String model) { if (!StringUtils.equal(this.model, model)) { this.model = model; notifyDataChanged(); } }
public void setBrand(String brand) { if (!StringUtils.equal(this.brand, brand)) { this.brand = brand; notifyDataChanged(); } }
public void setZip(String zip) { if (!StringUtils.equal(this.zip, zip)) { this.zip = zip; notifyDataChanged(); } }
public void setBoard(String board) { if (!StringUtils.equal(this.board, board)) { this.board = board; notifyDataChanged(); } }
public void setDevice(String device) { if (!StringUtils.equal(this.device, device)) { this.device = device; notifyDataChanged(); } }
public void setCarrier(String carrier) { if (!StringUtils.equal(this.carrier, carrier)) { this.carrier = carrier; notifyDataChanged(); } }
public void setLocaleCountryCode(String localeCountryCode) { if (!StringUtils.equal(this.localeCountryCode, localeCountryCode)) { this.localeCountryCode = localeCountryCode; notifyDataChanged(); } }
public void setName(String name) { if (!StringUtils.equal(this.name, name)) { this.name = name; notifyDataChanged(); } }
public void setConversationToken(String conversationToken) { if (!StringUtils.equal(this.conversationToken, conversationToken)) { this.conversationToken = conversationToken; notifyDataChanged(); } }
public void setConversationId(String conversationId) { if (conversationId == null) { throw new IllegalArgumentException("Conversation id is null"); } if (!StringUtils.equal(this.conversationId, conversationId)) { this.conversationId = conversationId; notifyDataChanged(); } }
public void setOsVersion(String osVersion) { if (!StringUtils.equal(this.osVersion, osVersion)) { this.osVersion = osVersion; notifyDataChanged(); } }
public void setCpu(String cpu) { if (!StringUtils.equal(this.cpu, cpu)) { this.cpu = cpu; notifyDataChanged(); } }
@Override public synchronized void deleteMessage(String nonce) { fetchEntries(); for (int i = 0; i < messageEntries.size(); ++i) { if (StringUtils.equal(nonce, messageEntries.get(i).nonce)) { messageEntries.remove(i); writeToFile(); break; } } }