public class PrefixSet extends Object
| Constructor and Description |
|---|
PrefixSet() |
PrefixSet(NavigableSet<String> prefixes) |
PrefixSet(PrefixSet uriPrefixes) |
PrefixSet(String... strings) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String s) |
void |
addAll(Collection<String> prefixes) |
void |
addAll(PrefixSet other) |
boolean |
containsPrefixOf(String value)
Tests whether the set constains a prefix for the given argument
|
boolean |
equals(Object obj) |
Set<String> |
getPrefixesOf(String s) |
Set<String> |
getPrefixesOf(String s,
boolean inclusive) |
NavigableSet<String> |
getSet() |
String |
getShortestMatch(String prefix) |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isPrefixForItem(String prefix)
Tests whether the argument is a prefix of one of the items
|
static void |
main(String[] args) |
void |
removeAll(Collection<String> ps) |
String |
toString() |
public PrefixSet()
public PrefixSet(String... strings)
public PrefixSet(NavigableSet<String> prefixes)
public PrefixSet(PrefixSet uriPrefixes)
public void addAll(Collection<String> prefixes)
public void addAll(PrefixSet other)
public NavigableSet<String> getSet()
public boolean isEmpty()
public boolean containsPrefixOf(String value)
value - public boolean isPrefixForItem(String prefix)
value - public static void main(String[] args)
public void removeAll(Collection<String> ps)
public void add(String s)
Copyright © 2014. All Rights Reserved.