@Test public void isLiteral() { final byte[] id = new byte[KnownURIsDictionary.ID_LENGTH]; RANDOMIZER.nextBytes(id); assertFalse(_cut.isLiteral(null)); id[0] = KnownURIsDictionary.KNOWN_URI_MARKER; assertFalse(_cut.isLiteral(id)); id[0] = KnownURIsDictionary.KNOWN_URI_MARKER + 1; _cut.isLiteral(id); verify(_decoratee).isLiteral(id); }
@Override public boolean isLiteral(final byte[] id) { return id != null && id[0] != KNOWN_URI_MARKER && _decoratee.isLiteral(id); }
KnownURIsDictionary extends SingleIndexValueDictionary implements ManageableKnownURIsDictionary { @Override public boolean isLiteral(final byte[] id) { return id != null && id[0] != KNOWN_URI_MARKER && _decoratee.isLiteral(id); } }
KnownURIsDictionary extends SingleIndexValueDictionary implements ManageableKnownURIsDictionary { @Override public boolean isLiteral(final byte[] id) { return id != null && id[0] != KNOWN_URI_MARKER && _decoratee.isLiteral(id); } KnownURIsDictionary(final String id, final ITopLevelDictionary decoratee);  KnownURIsDictionary(final String id, final ITopLevelDictionary decoratee, final String ... domains); }
KnownURIsDictionary extends SingleIndexValueDictionary implements ManageableKnownURIsDictionary { @Override public boolean isLiteral(final byte[] id) { return id != null && id[0] != KNOWN_URI_MARKER && _decoratee.isLiteral(id); } KnownURIsDictionary(final String id, final ITopLevelDictionary decoratee);  KnownURIsDictionary(final String id, final ITopLevelDictionary decoratee, final String ... domains); @Override void initialiseInternal(final DataAccessLayerFactory factory); @Override void removeValue(final Value value, final boolean p); @Override boolean isBNode(final byte[] id); @Override boolean isLiteral(final byte[] id); @Override boolean isResource(final byte[] id); @Override long getIdKnownURIsHitsCount(); @Override long getValueKnownURIsHitsCount(); }
KnownURIsDictionary extends SingleIndexValueDictionary implements ManageableKnownURIsDictionary { @Override public boolean isLiteral(final byte[] id) { return id != null && id[0] != KNOWN_URI_MARKER && _decoratee.isLiteral(id); } KnownURIsDictionary(final String id, final ITopLevelDictionary decoratee);  KnownURIsDictionary(final String id, final ITopLevelDictionary decoratee, final String ... domains); @Override void initialiseInternal(final DataAccessLayerFactory factory); @Override void removeValue(final Value value, final boolean p); @Override boolean isBNode(final byte[] id); @Override boolean isLiteral(final byte[] id); @Override boolean isResource(final byte[] id); @Override long getIdKnownURIsHitsCount(); @Override long getValueKnownURIsHitsCount();  }