Logo Search packages:      
Sourcecode: jmk version File versions  Download package

static StringList edu::neu::ccs::jmk::StringUtils::equal ( StringList  sl1,
StringList  sl2,
StringList  list 
) [inline, static, package]

Returns true if the two input lists are equal. True is a list containing the string "true". False is the empty list.

Definition at line 273 of file StringUtils.java.

References edu::neu::ccs::jmk::StringList::getRest(), and edu::neu::ccs::jmk::StringList::getString().

    for (;;) {
      if (sl1 == null)
      return sl2 == null ? new StringList("true", list) : list;
      else if (sl2 == null)
      return list;
      else if (!sl1.getString().equals(sl2.getString()))
      return list;
      else {
      sl1 = sl1.getRest();
      sl2 = sl2.getRest();

Generated by  Doxygen 1.6.0   Back to index