MCPcopy Create free account
hub / github.com/PCGen/pcgen / compareTo

Method compareTo

code/src/java/pcgen/gui2/facade/EquipNode.java:201–216  ·  view source on GitHub ↗
(EquipNode other)

Source from the content-addressed store, hash-verified

199 }
200
201 @Override
202 public int compareTo(EquipNode other)
203 {
204 String orderThis = getOrder(this);
205 String orderOther = getOrder(other);
206
207 if (!orderThis.equals(orderOther))
208 {
209 return orderThis.compareTo(orderOther);
210 }
211 if ((getIdPath() != null) && (other.getIdPath() != null))
212 {
213 return idPath.compareTo(other.idPath);
214 }
215 return getSortKey().compareTo(other.getSortKey());
216 }
217
218 /**
219 * Retrieve the order of the node, that is the top level

Callers 8

canAffordMethod · 0.45
calcItemCostMethod · 0.45
refreshTotalWeightMethod · 0.45
isQualifiedForMethod · 0.45
checkAbilityQualifyMethod · 0.45
compareMethod · 0.45
compareMethod · 0.45
referenceChangedMethod · 0.45

Calls 5

getOrderMethod · 0.95
getIdPathMethod · 0.95
getSortKeyMethod · 0.95
equalsMethod · 0.65
getSortKeyMethod · 0.65

Tested by

no test coverage detected