135136137138139140141142143144145
private SubscriptionNode getNodeForSubscription(final SubscriptionList list, final Subscription sub) { SubscriptionNode node = list.getHead(); while (node != null && node.getSubscription() != sub) { node = node.nextNode(); } return node; }
150151152153154155156157158159160
{ SubscriptionNode node = list.getHead(); int count; for(count = -1; node != null; count++) { node = node.nextNode(); } return count; }