public class PrefixMapBase extends Object implements PrefixMapI
PrefixMapI implemented using StoragePrefixMap| Constructor and Description |
|---|
PrefixMapBase(StoragePrefixMap storage) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String prefix,
String iriString)
Add a prefix, overwrites any existing association
|
void |
clear()
Clear the prefix mappings.
|
boolean |
containPrefix(String prefix) |
void |
delete(String prefix)
Delete a prefix
|
void |
forEach(BiConsumer<String,String> action)
Apply a
BiConsumer<String, String> to each entry in the PrefixMap. |
String |
get(String prefix)
Get the mapping for a prefix (or return null).
|
Map<String,String> |
getMapping()
returns the underlying mapping - do not modify
|
Map<String,String> |
getMappingCopy()
returns a copy of the underlying mapping
|
StoragePrefixMap |
getPrefixMapStorage() |
boolean |
isEmpty()
Return whether there are any prefix mappings or not.
|
void |
putAll(PrefixMapI pmap)
Add a prefix, overwrites any existing association
|
int |
size()
Return the number of mappings.
|
Stream<PrefixEntry> |
stream()
Stream of over all prefix entries.
|
String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitabbrev, abbreviate, expand, expand, iterator, prefixesforEach, spliteratorpublic PrefixMapBase(StoragePrefixMap storage)
public Map<String,String> getMapping()
PrefixMapIgetMapping in interface PrefixMapIpublic Map<String,String> getMappingCopy()
PrefixMapIgetMappingCopy in interface PrefixMapIpublic StoragePrefixMap getPrefixMapStorage()
getPrefixMapStorage in interface PrefixMapIpublic void add(String prefix, String iriString)
PrefixMapIadd in interface PrefixMapIpublic void putAll(PrefixMapI pmap)
PrefixMapIputAll in interface PrefixMapIpublic void delete(String prefix)
PrefixMapIdelete in interface PrefixMapIpublic Stream<PrefixEntry> stream()
PrefixMapIstream in interface PrefixMapIpublic void forEach(BiConsumer<String,String> action)
PrefixMapIBiConsumer<String, String> to each entry in the PrefixMap.forEach in interface PrefixMapIpublic void clear()
PrefixMapIclear in interface PrefixMapIpublic boolean isEmpty()
PrefixMapIisEmpty in interface PrefixMapIpublic int size()
PrefixMapIsize in interface PrefixMapIpublic String get(String prefix)
PrefixMapIget in interface PrefixMapIpublic boolean containPrefix(String prefix)
containPrefix in interface PrefixMapILicensed under the Apache License, Version 2.0