congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
NodeList.size
Code IndexAdd Tabnine to your IDE (free)

How to use
size
method
in
org.cybergarage.xml.NodeList

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

origin: i2p/i2p.i2p

public int getNNodes() {
  return nodeList.size();
}
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

  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;
  }
}
origin: i2p/i2p.i2p

public DeviceList getDeviceList()
{
  DeviceList devList = new DeviceList();
  int nRoots = devNodeList.size();
  for (int n=0; n<nRoots; n++) {
    // AIOOB was thrown from here, maybe would be better to
    // copy the list before traversal?
    Node rootNode;
    try {
      rootNode = devNodeList.getNode(n);
    } catch (ArrayIndexOutOfBoundsException aioob) {
      break;
    }
    Device dev = getDevice(rootNode);
    if (dev == null)
      continue;
    devList.add(dev);
  } 
  return devList;
}
origin: i2p/i2p.i2p

public Device getDevice(String name)
{
  int nRoots = devNodeList.size();
  for (int n=0; n<nRoots; n++) {
    // AIOOB was thrown from here, maybe would be better to
    // copy the list before traversal?
    Node rootNode;
    try {
      rootNode = devNodeList.getNode(n);
    } catch (ArrayIndexOutOfBoundsException aioob) {
      break;
    }
    Device dev = getDevice(rootNode);
    if (dev == null)
      continue;
    if (dev.isDevice(name) == true)
      return dev;
    Device cdev = dev.getDevice(name);
    if (cdev != null)
      return cdev;
  } 
  return null;
}
origin: cybergarage/cybergarage-upnp

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

public int getNNodes() {
  return nodeList.size();
}
origin: cybergarage/cybergarage-upnp

  public synchronized 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;
  }
}
origin: geniusgithub/MediaPlayer

public synchronized 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: cybergarage/cybergarage-upnp

public synchronized 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: geniusgithub/MediaPlayer

  public synchronized 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;
  }
}
origin: cybergarage/cybergarage-upnp

public Device getDevice(String name)
{
  devNodeListLock.readLock().lock();
  try {
    int nRoots = devNodeList.size();
    for (int n = 0; n < nRoots; n++) {
      Node rootNode = devNodeList.getNode(n);
      Device dev = getDevice(rootNode);
      if (dev == null)
        continue;
      if (dev.isDevice(name) == true)
        return dev;
      Device cdev = dev.getDevice(name);
      if (cdev != null)
        return cdev;
    }
    return null;
  }
  finally {
    devNodeListLock.readLock().unlock();
  }
}
origin: cybergarage/cybergarage-upnp

public DeviceList getDeviceList()
{
  devNodeListLock.readLock().lock();
  try {
    DeviceList devList = new DeviceList();
    int nRoots = devNodeList.size();
    for (int n = 0; n < nRoots; n++) {
      Node rootNode = devNodeList.getNode(n);
      Device dev = getDevice(rootNode);
      if (dev == null)
        continue;
      devList.add(dev);
    }
    return devList;
  }
  finally {
    devNodeListLock.readLock().unlock();
  }
}
origin: geniusgithub/MediaPlayer

public DeviceList getDeviceList()
{
  devNodeListLock.readLock().lock();
  try {
    DeviceList devList = new DeviceList();
    int nRoots = devNodeList.size();
    for (int n = 0; n < nRoots; n++) {
      Node rootNode = devNodeList.getNode(n);
      Device dev = getDevice(rootNode);
      if (dev == null)
        continue;
      devList.add(dev);
    }
    return devList;
  }
  finally {
    devNodeListLock.readLock().unlock();
  }
}
origin: geniusgithub/MediaPlayer

public Device getDevice(String name)
{
  devNodeListLock.readLock().lock();
  try {
    int nRoots = devNodeList.size();
    for (int n = 0; n < nRoots; n++) {
      Node rootNode = devNodeList.getNode(n);
      Device dev = getDevice(rootNode);
      if (dev == null)
        continue;
      if (dev.isDevice(name) == true)
        return dev;
      Device cdev = dev.getDevice(name);
      if (cdev != null)
        return cdev;
    }
    return null;
  }
  finally {
    devNodeListLock.readLock().unlock();
  }
}
origin: geniusgithub/MediaPlayer

AlwaysLog.i(TAG, "ready to clear devNodeList...devNodeList.size = " + devNodeList.size());
devNodeListLock.writeLock().lock();
devNodeList.clear();
org.cybergarage.xmlNodeListsize

Popular methods of NodeList

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

Popular in Java

  • Making http requests using okhttp
  • getSystemService (Context)
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JList (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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