public class Helper extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
BP_BOTTOM
bottom bipolar pointer
|
static int |
BP_INVALID
invalid bipolar pointer
|
static int |
BP_TOP
top bipolar pointer
|
static int |
INITBRANCHINGLEVELVALUE
brancing level value
|
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
allMatchOnAllPairs(List<T> l,
Predicate<org.semanticweb.owlapi.util.OWLAPIStreamUtils.Pair<T>> f) |
static <T> boolean |
allMatchOnPairs(List<T> l,
Predicate<org.semanticweb.owlapi.util.OWLAPIStreamUtils.Pair<T>> f) |
static <T> void |
allPairs(List<T> l,
BiConsumer<T,T> f) |
static <T> boolean |
anyMatchOnAllPairs(List<T> l,
Predicate<org.semanticweb.owlapi.util.OWLAPIStreamUtils.Pair<T>> f) |
static <T> boolean |
anyMatchOnPairs(List<T> l,
Predicate<org.semanticweb.owlapi.util.OWLAPIStreamUtils.Pair<T>> f) |
static int |
createBiPointer(int index,
boolean pos) |
static <T> Optional<T> |
elementFromIntersection(Collection<T> s1,
Collection<T> s2)
Find an element in the intersection of two collections
|
static boolean |
intersectsWith(Collection<?> s1,
Collection<?> s2)
check whether set S1 intersects with the set S2
|
static boolean |
isCorrect(int p) |
static boolean |
isValid(int p) |
static <T> void |
pairs(List<T> l,
BiConsumer<T,T> f) |
static <T> void |
resize(List<T> l,
int n,
T filler) |
public static final int INITBRANCHINGLEVELVALUE
public static final int BP_INVALID
public static final int BP_TOP
public static final int BP_BOTTOM
public static <T> void pairs(List<T> l, BiConsumer<T,T> f)
T - typel - list to walkf - consumerpublic static <T> void allPairs(List<T> l, BiConsumer<T,T> f)
T - typel - list to walkf - consumerpublic static <T> boolean anyMatchOnAllPairs(List<T> l, Predicate<org.semanticweb.owlapi.util.OWLAPIStreamUtils.Pair<T>> f)
T - typel - list to walkf - consumerpublic static <T> boolean allMatchOnAllPairs(List<T> l, Predicate<org.semanticweb.owlapi.util.OWLAPIStreamUtils.Pair<T>> f)
T - typel - list to walkf - consumerpublic static <T> boolean anyMatchOnPairs(List<T> l, Predicate<org.semanticweb.owlapi.util.OWLAPIStreamUtils.Pair<T>> f)
T - typel - list to walkf - consumerpublic static <T> boolean allMatchOnPairs(List<T> l, Predicate<org.semanticweb.owlapi.util.OWLAPIStreamUtils.Pair<T>> f)
T - typel - list to walkf - consumerpublic static boolean intersectsWith(Collection<?> s1, Collection<?> s2)
s1 - S1s2 - S2public static <T> Optional<T> elementFromIntersection(Collection<T> s1, Collection<T> s2)
T - types1 - S1s2 - S2public static <T> void resize(List<T> l, int n, @Nullable T filler)
T - argument typel - ln - nfiller - fillerpublic static int createBiPointer(int index,
boolean pos)
index - indexpos - pospublic static boolean isCorrect(int p)
p - ppublic static boolean isValid(int p)
p - pCopyright © 2018 The University of Manchester. All rights reserved.