Package org.aksw.jena_sparql_api.views
Class PrefixSet
java.lang.Object
org.aksw.jena_sparql_api.views.PrefixSet
TODO Switch to a trie data structure
- Author:
- Claus Stadler <cstadler@informatik.uni-leipzig.de>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAll(Collection<String> prefixes) voidbooleancontainsPrefixOf(String value) Tests whether the set constains a prefix for the given argumentbooleangetPrefixesOf(String s, boolean inclusive) getSet()getShortestMatch(String prefix) inthashCode()booleanisEmpty()booleanisPrefixForItem(String prefix) Tests whether the argument is a prefix of one of the itemsstatic voidvoidremoveAll(Collection<String> ps) toString()
-
Constructor Details
-
PrefixSet
public PrefixSet() -
PrefixSet
-
PrefixSet
-
-
Method Details
-
addAll
-
addAll
-
getSet
-
isEmpty
public boolean isEmpty() -
toString
-
containsPrefixOf
Tests whether the set constains a prefix for the given argument- Parameters:
value-- Returns:
-
isPrefixForItem
Tests whether the argument is a prefix of one of the items- Parameters:
value-- Returns:
-
getShortestMatch
-
main
-
removeAll
-
add
-
getPrefixesOf
-
getPrefixesOf
-
hashCode
public int hashCode() -
equals
-