List of usage examples for org.apache.commons.lang3.builder EqualsBuilder append
public EqualsBuilder append(final boolean[] lhs, final boolean[] rhs)
Deep comparison of array of boolean
.
From source file:io.netlibs.bgp.protocol.attributes.PathAttribute.java
@Override public boolean equals(final Object obj) { if (!(obj instanceof PathAttribute)) { return false; }/*from www .j a v a2 s.c o m*/ final PathAttribute o = (PathAttribute) obj; final EqualsBuilder builder = new EqualsBuilder(); builder.append(this.internalType(), o.internalType()).append(this.getCategory(), o.getCategory()) .append(this.isOptional(), o.isOptional()).append(this.isPartial(), o.isPartial()) .append(this.isTransitive(), o.isTransitive()); if (this.internalType() == o.internalType()) { builder.appendSuper(this.subclassEquals(o)); } return builder.isEquals(); }
From source file:com.jdom.get.stuff.done.domain.Task.java
@Override public boolean equals(Object obj) { if (obj instanceof Task) { Task other = (Task) obj;// ww w .j av a 2 s . c o m EqualsBuilder eqBuilder = new EqualsBuilder(); eqBuilder.append(this.getName(), other.getName()); return eqBuilder.isEquals(); } return false; }
From source file:com.jdom.get.stuff.done.domain.Task.java
public boolean equals(com.google.api.services.tasks.model.Task googleTask, String listName) { EqualsBuilder eqBuilder = new EqualsBuilder(); eqBuilder.append(this.isDeleted(), Boolean.parseBoolean("" + googleTask.getDeleted())); eqBuilder.append(this.isCompleted(), "completed".equals(googleTask.getStatus())); eqBuilder.append(this.getName(), googleTask.getTitle()); eqBuilder.append(this.getListName(), listName); Date thisDueDate = DateUtil.getDateZeroingHoursAndBelow(getDueDate()); long raw = 0; DateTime googleDue = googleTask.getDue(); if (googleDue != null) { raw = googleDue.getValue();/*w w w. ja v a 2 s . c o m*/ raw -= TimeZone.getDefault().getOffset(raw); } Date thatDueDate = DateUtil.getDateZeroingHoursAndBelow(new Date(raw)); eqBuilder.append(thisDueDate, thatDueDate); return eqBuilder.isEquals(); }
From source file:com.nmote.smpp.Binding.java
/** * Checks if o and this object are equal. * * @return true if objects are equal, false otherwise *//*from www .j a v a2s.co m*/ @Override public boolean equals(Object o) { boolean result; if (o != null && o instanceof Binding) { Binding binding = (Binding) o; EqualsBuilder b = new EqualsBuilder(); b.append(systemId, binding.systemId); b.append(systemType, binding.systemType); b.append(receiver, binding.receiver); b.append(transmitter, binding.transmitter); b.append(password, binding.password); b.append(addressRange, binding.addressRange); result = b.isEquals(); } else { result = false; } return result; }
From source file:ca.uhn.fhir.jpa.entity.TermConcept.java
@Override public boolean equals(Object theObj) { if (!(theObj instanceof TermConcept)) { return false; }// w w w . ja va2 s.c o m if (theObj == this) { return true; } TermConcept obj = (TermConcept) theObj; EqualsBuilder b = new EqualsBuilder(); b.append(myCodeSystem, obj.myCodeSystem); b.append(myCode, obj.myCode); return b.isEquals(); }
From source file:com.nmote.smpp.QuerySmRespPDU.java
/** * Checks if <code>o</code> and this object are equal. * * @return true if objects are equal, false otherwise *///from w ww .j ava 2 s. c o m public boolean equals(Object o) { boolean result; if (o instanceof QuerySmRespPDU) { QuerySmRespPDU p = (QuerySmRespPDU) o; EqualsBuilder b = new EqualsBuilder(); b.append(p.getSequence(), getSequence()); b.append(p.getStatus(), getStatus()); // Appending mandatory parameters b.append(p.message_id, message_id); b.append(p.final_date, final_date); b.append(p.message_state, message_state); b.append(p.error_code, error_code); // Appending optional parameters b.append(p.getParameters(), getParameters()); result = b.isEquals(); } else { result = false; } return result; }
From source file:com.nmote.smpp.CancelSmPDU.java
/** * Checks if <code>o</code> and this object are equal. * * @return true if objects are equal, false otherwise *//*from w w w .jav a 2 s .c o m*/ public boolean equals(Object o) { boolean result; if (o instanceof CancelSmPDU) { CancelSmPDU p = (CancelSmPDU) o; EqualsBuilder b = new EqualsBuilder(); b.append(p.getSequence(), getSequence()); b.append(p.getStatus(), getStatus()); // Appending mandatory parameters b.append(p.service_type, service_type); b.append(p.message_id, message_id); b.append(p.source_addr, source_addr); b.append(p.dest_addr, dest_addr); // Appending optional parameters b.append(p.getParameters(), getParameters()); result = b.isEquals(); } else { result = false; } return result; }
From source file:com.github.jgility.core.project.Project.java
@Override public boolean equals(Object obj) { if (obj instanceof Project) { Project project = (Project) obj; EqualsBuilder builder = new EqualsBuilder(); builder.append(name, project.getName()); builder.append(description, project.getDescription()); builder.append(team, project.getTeam()); builder.append(releasePlan, project.getReleasePlan()); return builder.isEquals(); }//from ww w.j a v a2 s. c o m return false; }
From source file:com.github.jgility.core.project.Product.java
@Override public boolean equals(Object obj) { if (obj instanceof Product) { Product product = (Product) obj; EqualsBuilder builder = new EqualsBuilder(); builder.append(description, product.description); builder.append(name, product.name); builder.append(productBacklog, product.productBacklog); builder.append(productOwner, product.productOwner); builder.append(projects, product.projects); return builder.isEquals(); }//from w w w. j a v a 2 s . com return false; }
From source file:com.nmote.smpp.BindTransmitterPDU.java
/** * Checks if <code>o</code> and this object are equal. * * @return true if objects are equal, false otherwise *///from w ww .j a v a 2 s. co m public boolean equals(Object o) { boolean result; if (o instanceof BindTransmitterPDU) { BindTransmitterPDU p = (BindTransmitterPDU) o; EqualsBuilder b = new EqualsBuilder(); b.append(p.getSequence(), getSequence()); b.append(p.getStatus(), getStatus()); // Appending mandatory parameters b.append(p.system_id, system_id); b.append(p.password, password); b.append(p.system_type, system_type); b.append(p.interface_version, interface_version); b.append(p.address_range, address_range); // Appending optional parameters b.append(p.getParameters(), getParameters()); result = b.isEquals(); } else { result = false; } return result; }