/** * Returns all of the {@code MimeHeader} objects whose name does not * match a name in the given array of names. * * @param names an array of {@code String} objects with the names * for which to search * @return an {@code Iterator} object over the {@code MimeHeader} * objects whose name does not match one of the names in the given list */ public Iterator<MimeHeader> getNonMatchingHeaders(String[] names) { return new MatchingIterator(names, false, headers.iterator()); } }
@Override public MimeHeader next() { // hasNext should've prefetched the header for us, // return it. if (nextHeader != null) { MimeHeader ret = nextHeader; nextHeader = null; return ret; } if (hasNext()) return nextHeader; return null; }
@Override public MimeHeader next() { // hasNext should've prefetched the header for us, // return it. if (nextHeader != null) { MimeHeader ret = nextHeader; nextHeader = null; return ret; } if (hasNext()) return nextHeader; return null; }
/** * Returns all of the <code>MimeHeader</code> objects whose name does not * match a name in the given array of names. * * @param names an array of <code>String</code> objects with the names * for which to search * @return an <code>Iterator</code> object over the <code>MimeHeader</code> * objects whose name does not match one of the names in the given list */ public Iterator getNonMatchingHeaders(String[] names) { return new MatchingIterator(names, false); } }
/** * Returns all of the {@code MimeHeader} objects whose name does not * match a name in the given array of names. * * @param names an array of {@code String} objects with the names * for which to search * @return an {@code Iterator} object over the {@code MimeHeader} * objects whose name does not match one of the names in the given list */ public Iterator<MimeHeader> getNonMatchingHeaders(String[] names) { return new MatchingIterator(names, false, headers.iterator()); } }
public boolean hasNext() { if (nextHeader == null) nextHeader = nextMatch(); return nextHeader != null; }
/** * Returns all of the <code>MimeHeader</code> objects whose name does not * match a name in the given array of names. * * @param names an array of <code>String</code> objects with the names * for which to search * @return an <code>Iterator</code> object over the <code>MimeHeader</code> * objects whose name does not match one of the names in the given list */ public Iterator getNonMatchingHeaders(String[] names) { return new MatchingIterator(names, false); } }
/** * Returns all of the <code>MimeHeader</code> objects whose name does not * match a name in the given array of names. * * @param names an array of <code>String</code> objects with the names * for which to search * @return an <code>Iterator</code> object over the <code>MimeHeader</code> * objects whose name does not match one of the names in the given list */ public Iterator getNonMatchingHeaders(String[] names) { return new MatchingIterator(names, false); } }
/** * Returns all of the {@code MimeHeader} objects whose name does not * match a name in the given array of names. * * @param names an array of {@code String} objects with the names * for which to search * @return an {@code Iterator} object over the {@code MimeHeader} * objects whose name does not match one of the names in the given list */ public Iterator<MimeHeader> getNonMatchingHeaders(String[] names) { return new MatchingIterator(names, false, headers.iterator()); } }
/** * Returns all the <code>MimeHeader</code> objects whose name matches * a name in the given array of names. * * @param names an array of <code>String</code> objects with the names * for which to search * @return an <code>Iterator</code> object over the <code>MimeHeader</code> * objects whose name matches one of the names in the given list */ public Iterator getMatchingHeaders(String[] names) { return new MatchingIterator(names, true); }
@Override public MimeHeader next() { // hasNext should've prefetched the header for us, // return it. if (nextHeader != null) { MimeHeader ret = nextHeader; nextHeader = null; return ret; } if (hasNext()) return nextHeader; return null; }
public Object next() { // hasNext should've prefetched the header for us, // return it. if (nextHeader != null) { Object ret = nextHeader; nextHeader = null; return ret; } if (hasNext()) return nextHeader; return null; }
/** * Returns all the <code>MimeHeader</code> objects whose name matches * a name in the given array of names. * * @param names an array of <code>String</code> objects with the names * for which to search * @return an <code>Iterator</code> object over the <code>MimeHeader</code> * objects whose name matches one of the names in the given list */ public Iterator getMatchingHeaders(String[] names) { return new MatchingIterator(names, true); }
/** * Returns all of the MimeHeader objects whose name does not match a name in the given array of names. * @param names an array of String objects with the names for which to search * @return an Iterator object over the MimeHeader objects whose name does not match one of the names in the given list */ public Iterator getNonMatchingHeaders(String[] names) { MatchingIterator iter = new MatchingIterator(headers, names, false); return iter; }
/** * Returns all the MimeHeader objects whose name matches a name in the given array of names. * @param names an array of String objects with the names for which to search * @return an Iterator object over the MimeHeader objects whose name matches one of the names in the given list */ public Iterator getMatchingHeaders(String[] names) { MatchingIterator iter = new MatchingIterator(headers, names, true); return iter; }
@Override public boolean hasNext() { if (nextHeader == null) nextHeader = nextMatch(); return nextHeader != null; }
public boolean hasNext() { if (nextHeader == null) nextHeader = nextMatch(); return nextHeader != null; }
/** * Returns all of the {@code MimeHeader} objects whose name does not * match a name in the given array of names. * * @param names an array of {@code String} objects with the names * for which to search * @return an {@code Iterator} object over the {@code MimeHeader} * objects whose name does not match one of the names in the given list */ public Iterator<MimeHeader> getNonMatchingHeaders(String[] names) { return new MatchingIterator(names, false, headers.iterator()); } }
public boolean hasNext() { if (nextHeader == null) nextHeader = nextMatch(); return nextHeader != null; }
@Override public boolean hasNext() { if (nextHeader == null) nextHeader = nextMatch(); return nextHeader != null; }