K
- keyV
- valueClassAxiomByClassPointer
public class MapPointer<K,V extends org.semanticweb.owlapi.model.OWLAxiom> extends Object
Constructor | Description |
---|---|
MapPointer(org.semanticweb.owlapi.model.AxiomType<?> t,
org.semanticweb.owlapi.model.OWLAxiomVisitorEx<?> v,
boolean initialized,
Internals i) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
contains(K key,
V value) |
|
boolean |
containsKey(K key) |
|
boolean |
containsReference(K e) |
|
boolean |
containsReference(org.semanticweb.owlapi.model.IRI e) |
|
<T> Collection<org.semanticweb.owlapi.model.OWLAxiom> |
filterAxioms(org.semanticweb.owlapi.util.OWLAxiomSearchFilter filter,
T key) |
|
Iterable<V> |
getAllValues() |
|
List<V> |
getValues(K key) |
|
boolean |
hasValues(K key) |
|
MapPointer<K,V> |
init() |
init the map pointer
|
boolean |
isEmpty() |
|
boolean |
isInitialized() |
|
Iterable<K> |
keySet() |
|
boolean |
put(K key,
V value) |
|
boolean |
remove(K key,
V value) |
|
int |
size() |
|
String |
toString() |
|
void |
trimToSize() |
Trim internal map to size.
|
public MapPointer(@Nullable org.semanticweb.owlapi.model.AxiomType<?> t, @Nullable org.semanticweb.owlapi.model.OWLAxiomVisitorEx<?> v, boolean initialized, @Nonnull Internals i)
t
- type of axioms containedv
- visitorinitialized
- true if initializedi
- internals containing this pointerpublic boolean containsReference(K e)
e
- entitypublic boolean containsReference(org.semanticweb.owlapi.model.IRI e)
e
- IRIpublic boolean isInitialized()
public MapPointer<K,V> init()
@Nonnull public <T> Collection<org.semanticweb.owlapi.model.OWLAxiom> filterAxioms(@Nonnull org.semanticweb.owlapi.util.OWLAxiomSearchFilter filter, @Nonnull T key)
T
- type of keyfilter
- filter to satisfykey
- keypublic boolean hasValues(K key)
key
- key to look uppublic boolean put(K key, V value)
key
- key to addvalue
- value to addpublic boolean remove(K key, V value)
key
- key to look upvalue
- value to removepublic boolean containsKey(K key)
key
- key to look uppublic boolean contains(K key, V value)
key
- key to look upvalue
- value to look uppublic int size()
public boolean isEmpty()
public void trimToSize()
Copyright © 2018 The University of Manchester. All rights reserved.