List of usage examples for org.apache.commons.lang.builder CompareToBuilder reflectionCompare
public static int reflectionCompare(Object lhs, Object rhs)
Compares two Object
s via reflection.
Fields can be private, thus AccessibleObject.setAccessible
is used to bypass normal access control checks.
From source file:org.ala.model.BaseRanking.java
@Override public int compareTo(BaseRanking o) { return CompareToBuilder.reflectionCompare(this, o); }
From source file:org.gridobservatory.greencomputing.adapters.Machine.java
@Override public int compareTo(Machine other) { return CompareToBuilder.reflectionCompare(this.getMachineID(), other.getMachineID()); }
From source file:org.gridobservatory.greencomputing.adapters.Middleware.java
@Override public int compareTo(Middleware other) { return CompareToBuilder.reflectionCompare(this.getMiddlewareID(), other.getMiddlewareID()); }
From source file:org.gridobservatory.greencomputing.adapters.Motherboard.java
@Override public int compareTo(Motherboard other) { return CompareToBuilder.reflectionCompare(this.getMotherboardID(), other.getMotherboardID()); }
From source file:org.gridobservatory.greencomputing.adapters.Room.java
@Override public int compareTo(Room other) { return CompareToBuilder.reflectionCompare(this.getRoomID(), other.getRoomID()); }
From source file:org.jenkinsci.plugins.neoload.integration.supporting.NTSServerInfo.java
/** * Compare int.//from w w w .j a va 2s . c om * * @param o1 the o 1 * @param o2 the o 2 * @return the int */ public int compare(final NTSServerInfo o1, final NTSServerInfo o2) { return CompareToBuilder.reflectionCompare(o1, o2); }
From source file:org.kuali.kfs.module.tem.document.web.bean.AccountingLineDistributionKey.java
/** * @see java.lang.Comparable#compareTo(java.lang.Object) *//* w w w .j av a 2s . co m*/ @Override public int compareTo(AccountingLineDistributionKey o) { return CompareToBuilder.reflectionCompare(this, o); }
From source file:org.kuali.rice.coreservice.impl.component.ComponentServiceImpl.java
/** * Calculates the checksum for the list of components. The list of components should be sorted in a * consistent way prior to generation of the checksum to ensure that the checksum value comes out the same regardless * of the ordering of components contained therein. The checksum allows us to easily determine if the component set * has been updated or not./*from ww w. j av a 2s . co m*/ */ protected String calculateChecksum(List<Component> components) { Collections.sort(components, new Comparator<Component>() { @Override public int compare(Component component1, Component component2) { return CompareToBuilder.reflectionCompare(component1, component2); } }); return ChecksumUtils.calculateChecksum(components); }
From source file:org.seedstack.business.api.domain.BaseValueObject.java
@Override public int compareTo(BaseValueObject o) { return CompareToBuilder.reflectionCompare(this, o); }
From source file:org.vulpe.security.model.entity.SecureResource.java
public int compareTo(final SecureResource o) { return CompareToBuilder.reflectionCompare(this, o); }