Code example for Vector

Methods: elements

0
  public DHit getHit(int index) {
    return (DHit) _hits.get(index);
  } 
 
  public Enumeration getHits() {
    return _hits.elements();
  } 
 
  public int getHitsCount() { 
    return _hits.size();
  } 
 
  public void removeHit(int index) {
    _hits.remove(index);
  } 
 
  @Override 
  public String toString() {
    try { 
      final Element el = DHitDistributionCodec.encode(this, XMLUtils.getDocument().createElement("Dummy"));
      el.getOwnerDocument().appendChild(el);