@Override protected ExtendedIterator<Triple> graphBaseFind(Triple triplePattern) { return NullIterator.instance() ; } } ;
public static <T> NullIterator<T> instance() { return new NullIterator<>(); }
/** * An iterator over no elements. * @return A class singleton which doesn't iterate. */ static public <T> ExtendedIterator<T> emptyIterator() { return NullIterator.instance() ; }
public static <T> NullIterator<T> instance() { return new NullIterator<>(); }
@Override protected ExtendedIterator<Triple> graphBaseFind(Triple triplePattern) { return NullIterator.instance() ; } } ;
/** * Answer an iterator over all of the values for the given key. An iterator * is always supplied, even if the key is not present. * * @param key The key object * @return An iterator over all of the values for this key in the map */ public Iterator<To> getAll( Object key ) { List<To> entry = m_table.get( key ); return (entry != null) ? entry.iterator() : new NullIterator<>(); }
/** * An iterator over no elements. * @return A class singleton which doesn't iterate. */ static public <T> ExtendedIterator<T> emptyIterator() { return NullIterator.instance() ; }
/** * Answer an iterator over all of the values for the given key. An iterator * is always supplied, even if the key is not present. * * @param key The key object * @return An iterator over all of the values for this key in the map */ public Iterator<To> getAll( Object key ) { List<To> entry = m_table.get( key ); return (entry != null) ? entry.iterator() : new NullIterator<>(); }
@Override protected ExtendedIterator<Triple> graphBaseFind(Triple triple) { return NullIterator.instance() ; }
/** * Return the derivation of at triple. * The derivation is a List of DerivationRecords */ @Override public Iterator<Derivation> getDerivation(Triple t) { if (derivations == null) { return new NullIterator<>(); } else { return derivations.getAll(t); } }
@Override protected ExtendedIterator<Triple> graphBaseFind(Triple triplePattern) { return NullIterator.instance(); }
/** * Return the derivation of at triple. * The derivation is a List of DerivationRecords */ @Override public Iterator<Derivation> getDerivation(Triple t) { if (derivations == null) { return new NullIterator<>(); } else { return derivations.getAll(t); } }
{ @Override public ExtendedIterator<Triple> graphBaseFind( Triple tm ) { return NullIterator.instance(); } };
/** * Return the derivation of at triple. * The derivation is a List of DerivationRecords */ @Override public Iterator<Derivation> getDerivation(Triple t) { if (derivations == null) { return new NullIterator<>(); } else { return derivations.getAll(t); } }