Beispiel #1
0
 public boolean equals(final Object obj) {
   if (!(obj instanceof RuleKey)) {
     return false;
   }
   final RuleKey other = (RuleKey) obj;
   return EqualsUtility.equals(getName(), other.getName())
       && EqualsUtility.equals(getVersion(), other.getVersion());
 }
Beispiel #2
0
 public boolean equals(final Object obj) {
   if (!(obj instanceof ImportListVo)) {
     return false;
   }
   final ImportListVo otherList = (ImportListVo) obj;
   if (size() != otherList.size()) {
     return false;
   }
   for (int i = 0; i < size(); i++) {
     if (!EqualsUtility.equals(get(i), otherList.get(i))) {
       return false;
     }
   }
   return true;
 }
Beispiel #3
0
 public void testGetReferences() {
   assertTrue(EqualsUtility.equals(new String[] {}, universal0.getReferences()));
   assertTrue(EqualsUtility.equals(new String[] {"first"}, universal1.getReferences()));
 }
Beispiel #4
0
 public boolean isNodeLocalReference() {
   return EqualsUtility.equals(nodeGoal, nodeCurrent);
 }