Package org.rsbot.client

Examples of org.rsbot.client.NodeSub


    this.nodeSubQueue = nodeSubQueue;
  }

  public int size() {
    int size = 0;
    NodeSub node = nodeSubQueue.getTail().getPrevSub();
    while (node != nodeSubQueue.getTail()) {
      node = node.getPrevSub();
      size++;
    }
    return size;
  }
View Full Code Here


    }
    return size;
  }

  public N getHead() {
    final NodeSub node = nodeSubQueue.getTail().getNextSub();
    if (node == nodeSubQueue.getTail()) {
      current = null;
      return null;
    }
    current = node.getNextSub();
    return (N) node;
  }
View Full Code Here

    current = node.getNextSub();
    return (N) node;
  }

  public N getNext() {
    final NodeSub node = current;
    if (node == nodeSubQueue.getTail()) {
      current = null;
      return null;
    }
    current = node.getNextSub();
    return (N) node;
  }
View Full Code Here

TOP

Related Classes of org.rsbot.client.NodeSub

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.