Class PrefixSet

java.lang.Object
org.aksw.jena_sparql_api.views.PrefixSet

public class PrefixSet extends Object
TODO Switch to a trie data structure
Author:
Claus Stadler <cstadler@informatik.uni-leipzig.de>
  • Constructor Details

    • PrefixSet

      public PrefixSet()
    • PrefixSet

      public PrefixSet(String... strings)
    • PrefixSet

      public PrefixSet(NavigableSet<String> prefixes)
    • PrefixSet

      public PrefixSet(PrefixSet uriPrefixes)
  • Method Details

    • addAll

      public void addAll(Collection<String> prefixes)
    • addAll

      public void addAll(PrefixSet other)
    • getSet

      public NavigableSet<String> getSet()
    • isEmpty

      public boolean isEmpty()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • containsPrefixOf

      public boolean containsPrefixOf(String value)
      Tests whether the set constains a prefix for the given argument
      Parameters:
      value -
      Returns:
    • isPrefixForItem

      public boolean isPrefixForItem(String prefix)
      Tests whether the argument is a prefix of one of the items
      Parameters:
      value -
      Returns:
    • getShortestMatch

      public String getShortestMatch(String prefix)
    • main

      public static void main(String[] args)
    • removeAll

      public void removeAll(Collection<String> ps)
    • add

      public void add(String s)
    • getPrefixesOf

      public Set<String> getPrefixesOf(String s)
    • getPrefixesOf

      public Set<String> getPrefixesOf(String s, boolean inclusive)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object