Lines Matching defs:target

174      * Compares this {@code LinkProperties} interface name against the target
176 * @param target LinkProperties to compare.
179 public boolean isIdenticalInterfaceName(LinkProperties target) {
180 return TextUtils.equals(getInterfaceName(), target.getInterfaceName());
184 * Compares this {@code LinkProperties} interface name against the target
186 * @param target LinkProperties to compare.
189 public boolean isIdenticalAddresses(LinkProperties target) {
190 Collection<InetAddress> targetAddresses = target.getAddresses();
197 * Compares this {@code LinkProperties} DNS addresses against the target
199 * @param target LinkProperties to compare.
202 public boolean isIdenticalDnses(LinkProperties target) {
203 Collection<InetAddress> targetDnses = target.getDnses();
209 * Compares this {@code LinkProperties} Routes against the target
211 * @param target LinkProperties to compare.
214 public boolean isIdenticalRoutes(LinkProperties target) {
215 Collection<RouteInfo> targetRoutes = target.getRoutes();
221 * Compares this {@code LinkProperties} HttpProxy against the target
223 * @param target LinkProperties to compare.
226 public boolean isIdenticalHttpProxy(LinkProperties target) {
227 return getHttpProxy() == null ? target.getHttpProxy() == null :
228 getHttpProxy().equals(target.getHttpProxy());
233 * Compares this {@code LinkProperties} instance against the target
251 LinkProperties target = (LinkProperties) obj;
253 return isIdenticalInterfaceName(target) &&
254 isIdenticalAddresses(target) &&
255 isIdenticalDnses(target) &&
256 isIdenticalRoutes(target) &&
257 isIdenticalHttpProxy(target);
263 * mLinkAddress which would then result in target and mLinkAddresses
266 * @param target is a LinkProperties with the new list of addresses
269 public CompareResult<LinkAddress> compareAddresses(LinkProperties target) {
272 * address which are common between mLinkAddresses and target
274 * are in target but not in mLinkAddresses are placed in the
280 if (target != null) {
281 for (LinkAddress newAddress : target.getLinkAddresses()) {
293 * mDnses which would then result in target and mDnses
296 * @param target is a LinkProperties with the new list of dns addresses
299 public CompareResult<InetAddress> compareDnses(LinkProperties target) {
302 * dns address which are common between mDnses and target
304 * are in target but not in mDnses are placed in the
311 if (target != null) {
312 for (InetAddress newAddress : target.getDnses()) {
324 * mRoutes which would then result in target and mRoutes
327 * @param target is a LinkProperties with the new list of routes
330 public CompareResult<RouteInfo> compareRoutes(LinkProperties target) {
333 * routes which are common between mDnses and target
335 * are in target but not in mRoutes are placed in added.
341 if (target != null) {
342 for (RouteInfo r : target.getRoutes()) {