K
- keyV
- valuepublic class MapPointer<K,V extends OWLAxiom> extends Object
Constructor and Description |
---|
MapPointer(AxiomType<?> t,
OWLAxiomVisitorEx<?> v,
boolean initialized,
Internals i,
Class<V> valueWithness) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(K key,
V value) |
boolean |
containsKey(K key) |
boolean |
containsReference(IRI e) |
boolean |
containsReference(K e) |
int |
countValues(K key) |
<T> Collection<OWLAxiom> |
filterAxioms(OWLAxiomSearchFilter filter,
T key) |
void |
forEach(BiConsumer<K,V> consumer)
This method replicates the Map.forEach on all the key/value pairs
|
void |
forEach(K key,
Consumer<V> function) |
Stream<V> |
getAllValues() |
Stream<V> |
getValues(K key) |
Collection<V> |
getValuesAsCollection(K key) |
MapPointer<K,V> |
init() |
boolean |
isEmpty() |
boolean |
isInitialized() |
Stream<K> |
keySet() |
boolean |
matchOnValues(K key,
Predicate<V> function) |
boolean |
put(K key,
V value) |
boolean |
remove(K key,
V value) |
int |
size() |
String |
toString() |
<O extends V> |
values(K key,
Class<O> classType) |
public MapPointer(@Nullable AxiomType<?> t, @Nullable OWLAxiomVisitorEx<?> v, boolean initialized, Internals i, Class<V> valueWithness)
t
- type of axioms containedv
- visitorinitialized
- true if initializedi
- internals containing this pointervalueWithness
- witness for the value typepublic void forEach(BiConsumer<K,V> consumer)
consumer
- a consumer with two argumentspublic boolean containsReference(K e)
e
- entitypublic boolean containsReference(IRI e)
e
- IRIpublic boolean isInitialized()
public MapPointer<K,V> init()
public void forEach(K key, Consumer<V> function)
key
- key to look upfunction
- consumer to applypublic boolean matchOnValues(K key, Predicate<V> function)
key
- key to look upfunction
- predicate to evaluatepublic Collection<V> getValuesAsCollection(K key)
key
- key to look uppublic int countValues(K key)
key
- key to look uppublic <O extends V> Stream<O> values(K key, Class<O> classType)
O
- output typekey
- key to look upclassType
- type of the returned valuespublic <T> Collection<OWLAxiom> filterAxioms(OWLAxiomSearchFilter filter, T key)
T
- type of keyfilter
- filter to satisfykey
- keypublic 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()
Copyright © 2020 The University of Manchester. All rights reserved.