Tabnine Logo
NodeList
Code IndexAdd Tabnine to your IDE (free)

How to use
NodeList
in
org.cybergarage.xml

Best Java code snippets using org.cybergarage.xml.NodeList (Showing top 20 results out of 315)

origin: i2p/i2p.i2p

public Node getNode(String name) 
{
  if (name == null)
    return null;
  
  int nLists = size(); 
  for (int n=0; n<nLists; n++) {
    Node node = getNode(n);
    String nodeName = node.getName();
    if (name.compareTo(nodeName) == 0)
      return node;
  }
  return null;
}
origin: i2p/i2p.i2p

private void addDevice(Node rootNode)
{
  devNodeList.add(rootNode);
}
origin: i2p/i2p.i2p

public void removeAllNodes()
{
  nodeList.clear();
}

origin: i2p/i2p.i2p

public Node getNode(String name) 
{
  return nodeList.getNode(name);
}

origin: i2p/i2p.i2p

public boolean removeNode(Node node) {
  node.setParentNode(null);
  return nodeList.remove(node);
}
origin: stackoverflow.com

 NodeList nodeList = queue.remove();
Node<?> node = nodeList.getNode();
int level = nodeList.getLevel();
// pretty print using the node & level
origin: geniusgithub/MediaPlayer

AlwaysLog.i(TAG, "ready to clear devNodeList...devNodeList.size = " + devNodeList.size());
devNodeListLock.writeLock().lock();
devNodeList.clear();
devNodeListLock.writeLock().unlock();
origin: i2p/i2p.i2p

public void insertNode(Node node, int index) {
  node.setParentNode(this);
  nodeList.insertElementAt(node, index);
}
origin: i2p/i2p.i2p

public Node getNodeEndsWith(String name) 
{
  return nodeList.getEndsWith(name);
}
origin: i2p/i2p.i2p

public int getIndex(String name){
  int index = -1;
  for (Iterator<Node> i = nodeList.iterator(); i.hasNext();) {
    index++;
    Node n = i.next();
    if(n.getName().equals(name))
      return index;
  }
  return index;
}
origin: i2p/i2p.i2p

public Node getNode(int n)
{
  return (Node)get(n);
}
origin: i2p/i2p.i2p

public int getNNodes() {
  return nodeList.size();
}
origin: i2p/i2p.i2p

public Node getNode(int index) {
  return nodeList.getNode(index);
}
origin: i2p/i2p.i2p

public boolean removeNode(String name) {
  return nodeList.remove(getNode(name));
}
origin: cybergarage/cybergarage-upnp

public void insertNode(Node node, int index) {
  node.setParentNode(this);
  nodeList.insertElementAt(node, index);
}
origin: geniusgithub/MediaPlayer

public Node getNodeEndsWith(String name) 
{
  return nodeList.getEndsWith(name);
}
origin: geniusgithub/MediaPlayer

public int getIndex(String name){
  int index = -1;
  for (Iterator i = nodeList.iterator(); i.hasNext();) {
    index++;
    Node n = (Node) i.next();
    if(n.getName().equals(name))
      return index;
  }
  return index;
}
origin: cybergarage/cybergarage-upnp

public Node getNode(int n)
{
  return (Node)get(n);
}
origin: cybergarage/cybergarage-upnp

public int getNNodes() {
  return nodeList.size();
}
origin: i2p/i2p.i2p

  public Node getEndsWith(String name) 
  {
    if (name == null)
      return null;

    int nLists = size(); 
    for (int n=0; n<nLists; n++) {
      Node node = getNode(n);
      String nodeName = node.getName();
      if (nodeName == null)
        continue;
      if (nodeName.endsWith(name) == true)
        return node;
    }
    return null;
  }
}
org.cybergarage.xmlNodeList

Most used methods

  • getNode
  • add
  • clear
  • get
  • getEndsWith
  • insertElementAt
  • iterator
  • remove
  • size
  • getLevel

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • putExtra (Intent)
  • scheduleAtFixedRate (Timer)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now