public class PrefixMapStorageSimple extends Object implements StoragePrefixMap
| Constructor and Description |
|---|
PrefixMapStorageSimple() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the prefix mapping storage.
|
boolean |
containsPrefix(String prefix)
Return whether the mapping contains an entry for the given prefix.
|
String |
get(String prefix)
Get the URI string associated with a prefix, or return null if there is no association.
|
boolean |
isEmpty()
Return whether there are any prefix mappings or not.
|
Iterator<PrefixEntry> |
iterator()
Iterator over all prefix entries.
|
void |
put(String prefix,
String uriStr)
Put a (prefix, uri) pair into the mapping.
|
void |
remove(String prefix)
Remove the mapping for a prefix.
|
int |
size()
Return the number of prefix mappings.
|
Stream<PrefixEntry> |
stream()
Stream of over all prefix entries.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprefixesforEach, spliteratorpublic void put(String prefix, String uriStr)
StoragePrefixMapput in interface StoragePrefixMapprefix - Prefix string (without colon).uriStr - URI as a string.public String get(String prefix)
StoragePrefixMapget in interface StoragePrefixMappublic void remove(String prefix)
StoragePrefixMapremove in interface StoragePrefixMapprefix - The prefix of the mapping to be removed.public boolean containsPrefix(String prefix)
StoragePrefixMapcontainsPrefix in interface StoragePrefixMappublic void clear()
StoragePrefixMapclear in interface StoragePrefixMappublic boolean isEmpty()
StoragePrefixMapisEmpty in interface StoragePrefixMappublic int size()
StoragePrefixMapsize in interface StoragePrefixMappublic Iterator<PrefixEntry> iterator()
StoragePrefixMapiterator in interface Iterable<PrefixEntry>iterator in interface StoragePrefixMappublic Stream<PrefixEntry> stream()
StoragePrefixMapstream in interface StoragePrefixMapLicensed under the Apache License, Version 2.0